diff --git a/package.json b/package.json index 70fb28f..532883e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-pwa", "displayName": " PWA VS Code", "description": "Progressive Web Apps Code Snippets (Including Workbox Support)", - "version": "0.5.2", + "version": "0.5.4", "publisher": "mayeedwin", "engines": { "vscode": "^1.8.0" diff --git a/snippets/javascript.json b/snippets/javascript.json index d1c2b7f..a6b783c 100644 --- a/snippets/javascript.json +++ b/snippets/javascript.json @@ -208,9 +208,9 @@ "// Cache CSS, JS, and Web Worker requests...", "registerRoute(", "// Check to see if the request's destination is style for css, script , or worker...", - "({ request }) => request.destination === 'style' ||,", - "({ request }) => request.destination === 'style' ||,", - "({ request }) => request.destination === 'worker',", + "({ request }) => request.destination === 'style' ||", + " request.destination === 'style' ||", + " request.destination === 'worker',", "// Use a Stale While Revalidate caching strategy...", " new StaleWhileRevalidate({", " // Put all cached files in a cache named 'assets'...",