diff --git a/src/js/FirmwareCache.js b/src/js/FirmwareCache.js index 90a7582b..e42f7c86 100644 --- a/src/js/FirmwareCache.js +++ b/src/js/FirmwareCache.js @@ -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, }; })(); diff --git a/src/js/tabs/firmware_flasher.js b/src/js/tabs/firmware_flasher.js index 92812c15..0928ecbe 100755 --- a/src/js/tabs/firmware_flasher.js +++ b/src/js/tabs/firmware_flasher.js @@ -545,7 +545,7 @@ TABS.firmware_flasher.initialize = function (callback) { TABS.firmware_flasher.cleanup = function (callback) { PortHandler.flush_callbacks(); - FirmwareCache.flush(); + FirmwareCache.unload(); // unbind "global" events $(document).unbind('keypress');