mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 05:45:25 +03:00
Migrate chrome storage API to window.localStorage
Add remove function Remove callback from set and remove Rebased Rebased
This commit is contained in:
parent
c86348b4db
commit
f41e135333
17 changed files with 597 additions and 636 deletions
|
@ -783,13 +783,12 @@ TABS.receiver.initialize = function (callback) {
|
|||
GUI.interval_add('receiver_pull', get_rc_refresh_data, plotUpdateRate, true);
|
||||
});
|
||||
|
||||
ConfigStorage.get('rx_refresh_rate', function (result) {
|
||||
if (result.rxRefreshRate) {
|
||||
rxRefreshRate.val(result.rxRefreshRate).change();
|
||||
} else {
|
||||
rxRefreshRate.change(); // start with default value
|
||||
}
|
||||
});
|
||||
const result = ConfigStorage.get('rx_refresh_rate');
|
||||
if (result.rxRefreshRate) {
|
||||
rxRefreshRate.val(result.rxRefreshRate).change();
|
||||
} else {
|
||||
rxRefreshRate.change(); // start with default value
|
||||
}
|
||||
|
||||
// Setup model for preview
|
||||
tab.initModelPreview();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue