replaceState() changed to pushState()

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

(cherry picked from commit 47fae2b2467df2ab017102d82833cb380c286867)
This commit is contained in:
Sebastien SAUVAGE 2013-02-24 17:24:40 +01:00 committed by El RIDO
parent fdc87a7fcf
commit ecd2e067f8
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,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);