diff --git a/public/service-worker.js b/public/service-worker.js index f40f2563..3d245ec3 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -193,7 +193,7 @@ const evaluateRequestData = function (request) { const objectStoreRequest = objectStore.add(fileObjects[i]); objectStoreRequest.onsuccess = _ => { - if (i === fileObjects.length - 1) resolve(pairDropUrl + '?share-target=files'); + if (i === fileObjects.length - 1) resolve(pairDropUrl + '?share_target=files'); } } } @@ -202,7 +202,7 @@ const evaluateRequestData = function (request) { } } else { - let urlArgument = '?share-target=text'; + let urlArgument = '?share_target=text'; if (title) urlArgument += `&title=${title}`; if (text) urlArgument += `&text=${text}`;