From c8d0490b2ffa66615ea37da0e9a7282af8d01077 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sat, 21 May 2022 00:21:15 +0200 Subject: [PATCH] Update NWjs to 0.67.1 and Node to 16.17.0 --- .nvmrc | 2 +- gulpfile.js | 2 +- src/js/gui.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.nvmrc b/.nvmrc index 99cdd800..2a4e4ab8 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.15.0 +16.17.0 diff --git a/gulpfile.js b/gulpfile.js index a03fe090..1083a74f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -50,7 +50,7 @@ const NODE_ENV = process.env.NODE_ENV || 'production'; const NAME_REGEX = /-/g; const nwBuilderOptions = { - version: '0.62.0', + version: '0.67.1', files: `${DIST_DIR}**/*`, macIcns: './src/images/bf_icon.icns', macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'}, diff --git a/src/js/gui.js b/src/js/gui.js index 6d1dd36d..03b7a192 100644 --- a/src/js/gui.js +++ b/src/js/gui.js @@ -74,7 +74,7 @@ const GuiControl = function () { }; function GUI_checkOperatingSystem() { - return navigator.userAgentData.platform; + return navigator?.userAgentData?.platform || 'Android'; } // Timer managing methods