Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Sharlaimov <konstantin.sharlaimov@gmail.com>2017-12-31 10:28:21 +0300
committerGitHub <noreply@github.com>2017-12-31 10:28:21 +0300
commit8243e36d0e77d067aae23b45295a13c7971aa543 (patch)
tree6472ba807d04b6090e1b963f54836adc8a5943f2 /main.js
parent00baf9596d37c9ec3f01363f4d98fc897fb3a113 (diff)
parent7ed32e2d39dec5cce6c74fe1130a727bb316a0b2 (diff)
Merge pull request #322 from Afinogen/fix-open-link
Fix open link
Diffstat (limited to 'main.js')
-rw-r--r--main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.js b/main.js
index 8bc2b12c..8dcbb28c 100644
--- a/main.js
+++ b/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) {