1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

Merge pull request #1893 from mikeller/update_libraries

Updated all dependencies and fixed resulting problem.
This commit is contained in:
Michael Keller 2020-02-25 23:56:39 +13:00 committed by GitHub
commit d93ad9afd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 183 additions and 124 deletions

View file

@ -85,17 +85,20 @@ function setupAnalytics(result) {
}
if (GUI.isNWJS()) {
const win = GUI.nwGui.Window.get();
win.on('close', function () {
sendCloseEvent();
GUI.nwGui.Window.getAll(function (windows) {
windows.forEach(function (win) {
win.on('close', function () {
sendCloseEvent();
this.close(true);
});
win.on('new-win-policy', function(frame, url, policy) {
// do not open the window
policy.ignore();
// and open it in external browser
GUI.nwGui.Shell.openExternal(url);
this.close(true);
});
win.on('new-win-policy', function(frame, url, policy) {
// do not open the window
policy.ignore();
// and open it in external browser
GUI.nwGui.Shell.openExternal(url);
});
});
});
} else if (!GUI.isOther()) {
// Looks like we're in Chrome - but the event does not actually get fired