Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
TG-BOTSNETWORK committed Nov 22, 2023
1 parent c369cc8 commit 3a6a560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@
var fileId = Math.random().toString(36).substring(7);
var codeContent = editor.getValue();
localStorage.setItem(fileId, codeContent);
var link = window.location.origin + window.location.pathname + "?file=" + fileId;
var link = "https://tg-botsnetwork.github.io/tgbotspaste//?file=" + fileId;
document.getElementById("content").innerHTML = "Share this link: <a href='" + link + "' target='_blank'>" + link + "</a>";
updateFooterInfo();
saveButton.disabled = true; // Disable the save button after saving
});


newButton.addEventListener("click", function () {
editor.setValue("");
document.getElementById("content").innerHTML = "";
Expand Down

0 comments on commit 3a6a560

Please sign in to comment.