Skip to content

Commit

Permalink
Fix url argument case ?share_target
Browse files Browse the repository at this point in the history
  • Loading branch information
schlagmichdoch committed Jan 6, 2024
1 parent f152645 commit 041261b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}
Expand All @@ -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}`;
Expand Down

0 comments on commit 041261b

Please sign in to comment.