Skip to content

Commit

Permalink
Merge pull request #27 from Relewise/feat/ensure-share-param-encoded
Browse files Browse the repository at this point in the history
Fix: Ensure share param encoded
  • Loading branch information
SWH-Relewise authored Aug 2, 2024
2 parents c6370b6 + bf89824 commit 6bee3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function shareLink() {
selectedUserIndex: context.value.selectedUserIndex,
};
navigator.clipboard.writeText(window.location.href + '?share=' + btoa(JSON.stringify(model)));
navigator.clipboard.writeText(window.location.href + '?share=' + encodeURIComponent(btoa(JSON.stringify(model))));
copied.value = true;
setTimeout(() => copied.value = false, 3000);
}
Expand Down

0 comments on commit 6bee3cc

Please sign in to comment.