Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
d600d8c3
Unverified
Commit
d600d8c3
authored
6 years ago
by
Peter Bengtsson
Browse files
Options
Download
Email Patches
Plain Diff
same before config.onUpdate
parent
32c42858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/template/src/serviceWorker.js
+1
-1
packages/react-scripts/template/src/serviceWorker.js
with
1 addition
and
1 deletion
+1
-1
packages/react-scripts/template/src/serviceWorker.js
+
1
-
1
View file @
d600d8c3
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets