From 980ac31e49667b44c4f24edf63a1846524d6b639 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 3 Apr 2016 10:23:24 -0500 Subject: [PATCH] Invalidate the cache after migrating DB --- storage-websql.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage-websql.js b/storage-websql.js index 8531b304..16c8823c 100644 --- a/storage-websql.js +++ b/storage-websql.js @@ -13,6 +13,10 @@ var webSqlStorage = { webSqlStorage.cleanStyle(s) os.add(s); }); + // While this was running, the styles were loaded from the (empty) indexed db + setTimeout(function() { + invalidateCache(true); + }, 500); }); }, null); },