From ecd2e067f86e90e5ba1ac37761557a79ae0c83c8 Mon Sep 17 00:00:00 2001 From: Sebastien SAUVAGE Date: Sun, 24 Feb 2013 17:24:40 +0100 Subject: [PATCH] replaceState() changed to pushState() so that the "Back" button works after clicking on "Raw text". (cherry picked from commit 47fae2b2467df2ab017102d82833cb380c286867) --- js/zerobin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/zerobin.js b/js/zerobin.js index a8b06716..cb699b66 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -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);