Fixed window hocks and enabled restore window state on startup
parent
fe3a444c67
commit
1cdc40cf47
|
@ -0,0 +1,6 @@
|
||||||
|
<script>
|
||||||
|
// Closing empty default nw.js window; we use the chrome window created in eventPage.js.
|
||||||
|
// The window created in eventPage.js also has some hocks to cleanup stuff when closing.
|
||||||
|
// Restoring window size, position and state also works out-of-the-box.
|
||||||
|
window.close();
|
||||||
|
</script>
|
|
@ -2,7 +2,8 @@
|
||||||
"name": "betaflight-configurator",
|
"name": "betaflight-configurator",
|
||||||
"description": "Crossplatform configuration tool for Betaflight flight control system.",
|
"description": "Crossplatform configuration tool for Betaflight flight control system.",
|
||||||
"version": "10.0.1",
|
"version": "10.0.1",
|
||||||
"main": "main.html",
|
"main": "main_nwjs.html",
|
||||||
|
"bg-script": "eventPage.js",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node node_modules/gulp/bin/gulp.js debug",
|
"start": "node node_modules/gulp/bin/gulp.js debug",
|
||||||
|
@ -11,11 +12,7 @@
|
||||||
"gulp": "gulp"
|
"gulp": "gulp"
|
||||||
},
|
},
|
||||||
"window": {
|
"window": {
|
||||||
"title": "Betaflight Configurator",
|
"show": false
|
||||||
"icon": "images/bf_icon_128.png",
|
|
||||||
"toolbar": true,
|
|
||||||
"width": 1280,
|
|
||||||
"height": 800
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue