Skip to content

Commit

Permalink
Edit offline link
Browse files Browse the repository at this point in the history
  • Loading branch information
Babek Naghiyev authored and Babek Naghiyev committed Jan 10, 2021
1 parent 122b369 commit d27b317
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ No need to hard work as ETag or whatever. As easy as drinking a coffee, even eas

```
importScripts('https://cdn.jsdelivr.net/gh/nagibaba/[email protected].2/lib/index.js');
importScripts('https://cdn.jsdelivr.net/gh/nagibaba/[email protected].3/lib/index.js');
const sw = new EasySW();
Expand All @@ -37,8 +37,8 @@ sw.precacheResources = ['/'];
sw.cacheGetRequests = false;
// offline if not cached
// @default '/offline.html'
sw.offlinePage = '/offline.html';
// @default '/offline'
sw.offlinePage = '/offline';
// Returns true if you don't want the URL to be cached
Expand Down Expand Up @@ -98,7 +98,7 @@ Pull requests are welcome. For major changes, please open an issue first to disc
npm run prepublish
```

## Version 1.2.2
## Version 1.2.3

## License

Expand Down
6 changes: 3 additions & 3 deletions example/sw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
importScripts(
"https://cdn.jsdelivr.net/gh/nagibaba/[email protected].2/lib/index.js",
"https://cdn.jsdelivr.net/gh/nagibaba/[email protected].3/lib/index.js",
);

const sw = new EasySW();
Expand All @@ -15,8 +15,8 @@ sw.precacheResources = ["/"];
sw.cacheGetRequests = false;

// offline if not cached
// @default '/offline.html'
sw.offlinePage = "/offline.html";
// @default '/offline'
sw.offlinePage = "/offline";

// Returns true if you don't want the URL to be cached
// @return boolean
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easy-service-worker",
"version": "1.2.2",
"version": "1.2.3",
"description": "This package is for getting best performance with eaziest configuration",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function EasySW() {
this.CACHENAME = "default-easy-cache";
this.precacheResources = ["/"];
this.cacheGetRequests = false;
this.offlinePage = "/offline.html";
this.offlinePage = "/offline";
this.exclude = (url) => {
return false;
};
Expand Down

0 comments on commit d27b317

Please sign in to comment.