1
0
Fork 0
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:
Kiripolszky Károly 2018-05-10 19:09:52 +02:00
parent e432d8656d
commit b18a98299b
2 changed files with 4 additions and 4 deletions

View file

@ -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,
};
})();