1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 04:45:18 +03:00

Merge pull request #322 from Afinogen/fix-open-link

Fix open link
This commit is contained in:
Konstantin Sharlaimov 2017-12-31 17:28:21 +10:00 committed by GitHub
commit 8243e36d0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {