Unverified Commit d600d8c3 authored by Peter Bengtsson's avatar Peter Bengtsson
Browse files

same before config.onUpdate

parent 32c42858
Showing with 1 addition and 1 deletion
+1 -1
...@@ -68,7 +68,7 @@ function registerValidSW(swUrl, config) { ...@@ -68,7 +68,7 @@ function registerValidSW(swUrl, config) {
console.log('New content is available; please refresh.'); console.log('New content is available; please refresh.');
// Execute callback // Execute callback
if (config.onUpdate) { if (config && config.onUpdate) {
config.onUpdate(registration); config.onUpdate(registration);
} }
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment