1
0
Эх сурвалжийг харах

replaceState() changed to pushState()

so that the "Back" button works after clicking on "Raw text".

(cherry picked from commit 47fae2b2467df2ab017102d82833cb380c286867)
Sebastien SAUVAGE 13 жил өмнө
parent
commit
ecd2e067f8
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      js/zerobin.js

+ 1 - 1
js/zerobin.js

@@ -425,7 +425,7 @@ function stateExistingPaste() {
   */
   */
 function rawText()
 function rawText()
 {
 {
-    history.replaceState(document.title, document.title, 'document.txt');
+    history.pushState(document.title, document.title, 'document.txt');
     var paste = $('div#cleartext').text();
     var paste = $('div#cleartext').text();
     var newDoc = document.open('text/plain', 'replace');
     var newDoc = document.open('text/plain', 'replace');
     newDoc.write(paste);
     newDoc.write(paste);