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

Commit a6d0546

Browse files
authored
Merge pull request #42 from pwa-builder/dev
spelling issues fixed in sw and docs
2 parents 9ede335 + af7ae3f commit a6d0546

File tree

10 files changed

+366
-364
lines changed

10 files changed

+366
-364
lines changed

assets/serviceWorkers/serviceWorker1/pwabuilder-sw-register.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//This is the "Offline page" service worker
22

3-
//Add this below content to your HTML page, or add the js file to your page at the very top to register sercie worker
3+
//Add this below content to your HTML page, or add the js file to your page at the very top to register service worker
44
if (navigator.serviceWorker.controller) {
55
console.log('[PWA Builder] active service worker found, no need to register')
66
} else {
77
//Register the ServiceWorker
8-
navigator.serviceWorker.register('pwabuider-sw.js', {
8+
navigator.serviceWorker.register('pwabuilder-sw.js', {
99
scope: './'
1010
}).then(function(reg) {
1111
console.log('Service worker has been registered for scope:'+ reg.scope);

assets/serviceWorkers/serviceWorker1/pwabuilder-sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//This is the "Offline page" service worker
22

3-
//Install stage sets up the offline page in the cahche and opens a new cache
3+
//Install stage sets up the offline page in the cache and opens a new cache
44
self.addEventListener('install', function(event) {
55
var offlinePage = new Request('offline.html');
66
event.waitUntil(

assets/serviceWorkers/serviceWorker2/pwabuilder-sw-register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//This is the "Offline copy of pages" service worker
22

3-
//Add this below content to your HTML page, or add the js file to your page at the very top to register sercie worker
3+
//Add this below content to your HTML page, or add the js file to your page at the very top to register service worker
44
if (navigator.serviceWorker.controller) {
55
console.log('[PWA Builder] active service worker found, no need to register')
66
} else {

assets/serviceWorkers/serviceWorker2/pwabuilder-sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//This is the "Offline copy of pages" wervice worker
1+
//This is the "Offline copy of pages" service worker
22

3-
//Install stage sets up the index page (home page) in the cahche and opens a new cache
3+
//Install stage sets up the index page (home page) in the cache and opens a new cache
44
self.addEventListener('install', function(event) {
55
var indexPage = new Request('index.html');
66
event.waitUntil(

assets/serviceWorkers/serviceWorker3/pwabuilder-sw-register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//This is the service worker with the combined offline experience (Offline page + Offline copy of pages)
22

3-
//Add this below content to your HTML page, or add the js file to your page at the very top to register sercie worker
3+
//Add this below content to your HTML page, or add the js file to your page at the very top to register service worker
44
if (navigator.serviceWorker.controller) {
55
console.log('[PWA Builder] active service worker found, no need to register')
66
} else {

assets/serviceWorkers/serviceWorker3/pwabuilder-sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//This is the service worker with the combined offline experience (Offline page + Offline copy of pages)
22

3-
//Install stage sets up the offline page in the cahche and opens a new cache
3+
//Install stage sets up the offline page in the cache and opens a new cache
44
self.addEventListener('install', function(event) {
55
event.waitUntil(preLoad());
66
});

assets/serviceWorkers/serviceWorker4/pwabuilder-sw-register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//This is the service worker with the Cache-first network
22

3-
//Add this below content to your HTML page, or add the js file to your page at the very top to register sercie worker
3+
//Add this below content to your HTML page, or add the js file to your page at the very top to register service worker
44
if (navigator.serviceWorker.controller) {
55
console.log('[PWA Builder] active service worker found, no need to register')
66
} else {

assets/serviceWorkers/serviceWorker4/pwabuilder-sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ function update(request) {
5959
}
6060

6161
function fromServer(request){
62-
//this is the fallback if it is not in the cahche to go to the server and get it
62+
//this is the fallback if it is not in the cache to go to the server and get it
6363
return fetch(request).then(function(response){ return response})
6464
}

0 commit comments

Comments
 (0)