Skip to content

Commit

Permalink
replaceState() changed to pushState()
Browse files Browse the repository at this point in the history
so that the "Back" button works after clicking on "Raw text".
  • Loading branch information
sebsauvage committed Feb 24, 2013
1 parent 00cfcaf commit 47fae2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/zerobin.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function stateExistingPaste() {
*/
function rawText()
{
history.replaceState(document.title, document.title, 'document.txt');
history.pushState(document.title, document.title, 'document.txt');
var paste = $('div#cleartext').text();
var newDoc = document.open('text/plain', 'replace');
newDoc.write(paste);
Expand Down

0 comments on commit 47fae2b

Please sign in to comment.