Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 1fad00a

Browse files
authored
Typo and wrong indentation in code snippet (#2501)
1 parent 7b9c905 commit 1fad00a

File tree

1 file changed

+6
-6
lines changed
  • site/en/docs/workbox/handling-service-worker-updates

1 file changed

+6
-6
lines changed

site/en/docs/workbox/handling-service-worker-updates/index.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ The following code runs in an inline `<script>` element using JavaScript modules
4242
4343
// This code assumes your app has a promptForUpdate() method,
4444
// which returns true if the user wants to update.
45-
// Implementing this is app-specific; some examples are:
46-
// https://open-ui.org/components/alert.research or
45+
// Implementing this is app-specific; some examples are:
46+
// https://open-ui.org/components/alert.research or
4747
// https://open-ui.org/components/toast.research
48-
const updateAccepted = await promptForUpdate();
48+
const updateAccepted = await promptForUpdate();
4949
50-
if (updateAccepted) {
51-
wb.mesageSkipWaiting();
52-
}
50+
if (updateAccepted) {
51+
wb.messageSkipWaiting();
52+
}
5353
};
5454
5555
// Add an event listener to detect when the registered

0 commit comments

Comments
 (0)