Explorar o código

Change URL on clone

Frédérik Paradis %!s(int64=14) %!d(string=hai) anos
pai
achega
7cb345001a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      js/zerobin.js

+ 4 - 0
js/zerobin.js

@@ -328,6 +328,10 @@ function stateExistingPaste() {
  */
 function clonePaste() {
     stateNewPaste();
+    
+    //Erase the id and the key in url
+    history.replaceState(document.title, document.title, scriptLocation());
+    
     showStatus('');
     $('textarea#message').text($('div#cleartext').text());
 }