reconsider package strings

This commit is contained in:
Aria Moradi
2021-05-27 02:13:17 +04:30
parent 155f9f107d
commit dda5a2df93
5 changed files with 6 additions and 6 deletions
@@ -18,11 +18,11 @@ object Browser {
fun openInBrowser() {
val openInElectron = System.getProperty("suwayomi.tachidesk.webInterface")?.equals("electron")
val openInElectron = System.getProperty("suwayomi.server.webInterface")?.equals("electron")
if (openInElectron == true) {
try {
val electronPath = System.getProperty("suwayomi.tachidesk.electronPath")!!
val electronPath = System.getProperty("suwayomi.server.electronPath")!!
electronInstances.add(ProcessBuilder(electronPath, appBaseUrl).start())
} catch (e: Throwable) { // cover both java.lang.Exception and java.lang.Error
e.printStackTrace()