Skip to content

Commit 47fae2b

Browse files
committed
replaceState() changed to pushState()
so that the "Back" button works after clicking on "Raw text".
1 parent 00cfcaf commit 47fae2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/zerobin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ function stateExistingPaste() {
439439
*/
440440
function rawText()
441441
{
442-
history.replaceState(document.title, document.title, 'document.txt');
442+
history.pushState(document.title, document.title, 'document.txt');
443443
var paste = $('div#cleartext').text();
444444
var newDoc = document.open('text/plain', 'replace');
445445
newDoc.write(paste);

0 commit comments

Comments
 (0)