@@ -1,8 +1,10 @@
self.addEventListener("install", event => {
+ self.skipWaiting();
});
self.addEventListener("activate", event => {
+ return self.clients.claim();
self.addEventListener("fetch", event => {
@@ -17,10 +17,7 @@
}
],
"share_target": {
- "action": "share",
- "url_template": "/add-link?url={url}&name={title}&text={text}",
- "method": "GET",
- "enctype": "application/x-www-form-urlencoded",
+ "action": "/add-link",
"params": {
"title": "name",
"text": "text",