mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-27 02:05:17 +03:00
fix error for require
This commit is contained in:
parent
db002fb1f5
commit
cacc4522c2
1 changed files with 27 additions and 23 deletions
4
main.js
4
main.js
|
@ -38,6 +38,7 @@ $(document).ready(function () {
|
|||
break;
|
||||
}
|
||||
|
||||
if (typeof require !== "undefined") {
|
||||
// Load native UI library
|
||||
var gui = require('nw.gui');
|
||||
var win = gui.Window.get();
|
||||
|
@ -62,6 +63,9 @@ $(document).ready(function () {
|
|||
console.log("We're closing...");
|
||||
this.close(true);
|
||||
});
|
||||
} else {
|
||||
console.log('Not load require');
|
||||
}
|
||||
|
||||
chrome.storage.local.get('logopen', function (result) {
|
||||
if (result.logopen) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue