mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
FirmwareCache: naming fixes
This commit is contained in:
parent
e432d8656d
commit
b18a98299b
2 changed files with 4 additions and 4 deletions
|
@ -172,7 +172,7 @@ let FirmwareCache = (function () {
|
|||
/**
|
||||
* Remove all cached data
|
||||
*/
|
||||
function destroy() {
|
||||
function invalidate() {
|
||||
if (!journalLoaded) {
|
||||
console.warn("Cache journal not yet loaded");
|
||||
return undefined;
|
||||
|
@ -240,10 +240,10 @@ let FirmwareCache = (function () {
|
|||
load: () => {
|
||||
JournalStorage.load(onEntriesLoaded);
|
||||
},
|
||||
flush: () => {
|
||||
unload: () => {
|
||||
JournalStorage.persist(journal.toJSON());
|
||||
journal.clear();
|
||||
},
|
||||
destroy: destroy,
|
||||
invalidate: invalidate,
|
||||
};
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue