Merge pull request #2930 from haslinghuis/update_nwjs

Update NWjs to 0.67.1 and Node to 16.17.0 LTS
10.9-maintenance
haslinghuis 2022-08-21 00:31:00 +02:00 committed by GitHub
commit 55d4506da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
.nvmrc
View File

@ -1 +1 @@
16.15.0
16.17.0

View File

@ -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'},

View File

@ -74,7 +74,7 @@ const GuiControl = function () {
};
function GUI_checkOperatingSystem() {
return navigator.userAgentData.platform;
return navigator?.userAgentData?.platform || 'Android';
}
// Timer managing methods