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

Remove chrome references

This commit is contained in:
Mark Haslinghuis 2021-03-21 20:48:24 +01:00
parent 251d1bc8ab
commit bede10fe4e
3 changed files with 14 additions and 19 deletions

View file

@ -167,7 +167,6 @@ function startProcess() {
GUI.log(i18n.getMessage('infoVersions', {
operatingSystem: GUI.operating_system,
chromeVersion: window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/, "$1"),
configuratorVersion: CONFIGURATOR.version }));
if (GUI.isNWJS()) {
@ -208,7 +207,7 @@ function startProcess() {
// our view is reactive to model changes
// updateTopBarVersion();
if (!GUI.isOther() && GUI.operating_system !== 'ChromeOS') {
if (!GUI.isOther()) {
checkForConfiguratorUpdates();
}

View file

@ -53,23 +53,19 @@ TABS.options.initRememberLastTab = function () {
};
TABS.options.initCheckForConfiguratorUnstableVersions = function () {
if (GUI.operating_system !== 'ChromeOS') {
ConfigStorage.get('checkForConfiguratorUnstableVersions', function (result) {
if (result.checkForConfiguratorUnstableVersions) {
$('div.checkForConfiguratorUnstableVersions input').prop('checked', true);
}
ConfigStorage.get('checkForConfiguratorUnstableVersions', function (result) {
if (result.checkForConfiguratorUnstableVersions) {
$('div.checkForConfiguratorUnstableVersions input').prop('checked', true);
}
$('div.checkForConfiguratorUnstableVersions input').change(function () {
const checked = $(this).is(':checked');
$('div.checkForConfiguratorUnstableVersions input').change(function () {
const checked = $(this).is(':checked');
ConfigStorage.set({'checkForConfiguratorUnstableVersions': checked});
ConfigStorage.set({'checkForConfiguratorUnstableVersions': checked});
checkForConfiguratorUpdates();
});
checkForConfiguratorUpdates();
});
} else {
$('div.checkForConfiguratorUnstableVersions').hide();
}
});
};
TABS.options.initAnalyticsOptOut = function () {