mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
commit
8243e36d0e
1 changed files with 7 additions and 0 deletions
7
main.js
7
main.js
|
@ -42,6 +42,13 @@ $(document).ready(function () {
|
|||
// Load native UI library
|
||||
var gui = require('nw.gui');
|
||||
var win = gui.Window.get();
|
||||
|
||||
//Listen to the new window event
|
||||
win.on('new-win-policy', function (frame, url, policy) {
|
||||
gui.Shell.openExternal(url);
|
||||
policy.ignore();
|
||||
});
|
||||
|
||||
//Get saved size and position
|
||||
chrome.storage.local.get('windowSize', function (result) {
|
||||
if (result.windowSize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue