Skip to content

Commit

Permalink
URLSearchParams already gives decoded params
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Jan 22, 2024
1 parent 82961d5 commit 0ab89b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions website/add-repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ next: false

onMounted(() => {
isAndroid.value = !!navigator.userAgent.match(/android/i);
decodedUrl.value = new URLSearchParams(window.location.search).get("url");

const url = new URLSearchParams(window.location.search).get("url");

decodedUrl.value = decodeURIComponent(url);

const reencodedUrl = encodeURIComponent(decodedUrl.value);

if (isAndroid.value) {
Expand Down

0 comments on commit 0ab89b5

Please sign in to comment.