diff options
author | Darren Lines <darren@darrenlines.uk> | 2021-11-12 23:19:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 23:19:46 +0300 |
commit | 29e3de2c25b404c278c06a14b66a0374a8183f32 (patch) | |
tree | 70f638b18d49ba4fc99036ee03e661470cd09480 /main.js | |
parent | 51a62fc85791ffe6482b3436567e3d27566dfe83 (diff) |
Update main.js
Added reset for the OSD units if the FC is not connected.
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -65,6 +65,11 @@ $(document).ready(function () { } globalSettings.proxyLayer = result.proxylayer; }); + + // Resets the OSD units used by the unit coversion when the FC is disconnected. + if (!CONFIGURATOR.connectionValid) { + globalSettings.osdUnits = null; + } // alternative - window.navigator.appVersion.match(/Chrome\/([0-9.]*)/)[1]; GUI.log('Running - OS: <strong>' + GUI.operating_system + '</strong>, ' + |