mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-11-01 06:55:06 +01:00
lint
This commit is contained in:
parent
9cde46b5da
commit
ae8d30593f
@ -20,7 +20,7 @@ import ir.armor.tachidesk.server.util.ExitCode.Success
|
||||
fun openInBrowser() {
|
||||
val appIP = if (serverConfig.ip == "0.0.0.0") "127.0.0.1" else serverConfig.ip
|
||||
try {
|
||||
Desktop.browseURL("http://${appIP}:${serverConfig.port}")
|
||||
Desktop.browseURL("http://$appIP:${serverConfig.port}")
|
||||
} catch (e: Throwable) { // cover both java.lang.Exception and java.lang.Error
|
||||
e.printStackTrace()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user