Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/0.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
bvolkmer committed Oct 4, 2018
2 parents c85438e + a3aa0a9 commit c436461
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group 'de.de.x4fyr'

ext.major_version = 0
ext.minor_version = 3
ext.revision_number = 2
ext.revision_number = 3
version "$major_version.$minor_version.$revision_number"
println("version: $version")

Expand Down
9 changes: 8 additions & 1 deletion desktop/src/main/java/de/x4fyr/paiman/app/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package de.x4fyr.paiman.app
import de.x4fyr.paiman.app.services.JavaFxWebViewService
import de.x4fyr.paiman.app.ui.views.entry.EntryController
import de.x4fyr.paiman.dagger.DaggerMainComponent
import de.x4fyr.paiman.dagger.desktop.DesktopServiceModule
import de.x4fyr.paiman.dagger.MainComponent
import de.x4fyr.paiman.dagger.desktop.DesktopServiceModule
import javafx.application.Application
import javafx.application.Platform
import javafx.scene.Scene
import javafx.scene.layout.StackPane
import javafx.stage.Stage
Expand All @@ -32,6 +33,12 @@ class App: Application() {
val scene = Scene(stackPane)
primaryStage.scene = scene
primaryStage.show()

primaryStage.onCloseRequest = javafx.event.EventHandler {
Platform.exit()
System.exit(0)
}

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class JavaFxWebViewService : WebViewService {
}
}
}
webView.engine.documentProperty().addListener { _, _, _ ->
webView.engine.executeScript("if (!document.getElementById('FirebugLite')){E = document['createElement' + 'NS'] && document.documentElement.namespaceURI;E = E ? document['createElement' + 'NS'](E, 'script') : document['createElement']('script');E['setAttribute']('id', 'FirebugLite');E['setAttribute']('src', 'https://getfirebug.com/' + 'firebug-lite.js' + '#startOpened');E['setAttribute']('FirebugLite', '4');(document['getElementsByTagName']('head')[0] || document['getElementsByTagName']('body')[0]).appendChild(E);E = new Image;E['setAttribute']('src', 'https://getfirebug.com/' + '#startOpened');}");
(webView.engine.executeScript("window") as JSObject).setMember("javaDebug", Debug())
}
//webView.engine.documentProperty().addListener { _, _, _ ->
// webView.engine.executeScript("if (!document.getElementById('FirebugLite')){E = document['createElement' + 'NS'] && document.documentElement.namespaceURI;E = E ? document['createElement' + 'NS'](E, 'script') : document['createElement']('script');E['setAttribute']('id', 'FirebugLite');E['setAttribute']('src', 'https://getfirebug.com/' + 'firebug-lite.js' + '#startOpened');E['setAttribute']('FirebugLite', '4');(document['getElementsByTagName']('head')[0] || document['getElementsByTagName']('body')[0]).appendChild(E);E = new Image;E['setAttribute']('src', 'https://getfirebug.com/' + '#startOpened');}");
// (webView.engine.executeScript("window") as JSObject).setMember("javaDebug", Debug())
//}
}


Expand Down

0 comments on commit c436461

Please sign in to comment.