Skip to content

Commit

Permalink
Fix share link
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Jun 13, 2024
1 parent 1117fe4 commit 7a8c8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ document.getElementById("menu-item-save").addEventListener("click", function ()
document.getElementById("menu-item-share").addEventListener("click", function () {
document.getElementById("menu-file").click();

const url = "localhost:9000/?dc=" + window.btoa(editor.getValue().toString);
const url = "https://editor.datacontract.com/?dc=" + window.btoa(editor.getValue().toString);
navigator.clipboard.writeText(url);

alert("Copied share URL to clipboard")
Expand Down

0 comments on commit 7a8c8af

Please sign in to comment.