Service worker: cache the two PNG icons with the rest of the shell
This commit is contained in:
1 parent
b3792b6109
commit
38e11ddeeb
1 file changed
+3
-1
+3
-1
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
const CACHE_NAME = "vardkey-shell-v1";
|
const CACHE_NAME = "vardkey-shell-v1";
|
||||||
|
|
||||||
// The shell: the pages, the assets they need, and the manifest and icon the
|
// The shell: the pages, the assets they need, and the manifest and icons the
|
||||||
// browser reads when the app is installed.
|
// browser reads when the app is installed.
|
||||||
const SHELL = [
|
const SHELL = [
|
||||||
"/",
|
"/",
|
||||||
@@ -27,6 +27,8 @@ const SHELL = [
|
|||||||
"/history.js",
|
"/history.js",
|
||||||
"/manifest.webmanifest",
|
"/manifest.webmanifest",
|
||||||
"/icon.svg",
|
"/icon.svg",
|
||||||
|
"/icon-192.png",
|
||||||
|
"/icon-512.png",
|
||||||
];
|
];
|
||||||
const SHELL_PATHS = new Set(SHELL);
|
const SHELL_PATHS = new Set(SHELL);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user