From da74d23be68d25ca2d28fa59df57eb1b0c7508d3 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Wed, 9 Dec 2015 11:18:34 +0100 Subject: [PATCH] Fixed offline copy issue with Chrome --- frontend/delta/js/Clipperz/PM/UI/MainController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/delta/js/Clipperz/PM/UI/MainController.js b/frontend/delta/js/Clipperz/PM/UI/MainController.js index f1a3a12..f1d9e39 100644 --- a/frontend/delta/js/Clipperz/PM/UI/MainController.js +++ b/frontend/delta/js/Clipperz/PM/UI/MainController.js @@ -1045,19 +1045,19 @@ Clipperz.log("THE BROWSER IS OFFLINE"); //========================================================================= historyReplaceState: function (args) { - if (window.document.origin != null) { + if ((window.document.origin != null) && (window.document.origin != "null")) { window.history.replaceState.apply(window.history, arguments); } }, historyPushState: function (args) { - if (window.document.origin != null) { + if ((window.document.origin != null) && (window.document.origin != "null")) { window.history.pushState.apply(window.history, arguments); } }, historyState: function (args) { - if (window.document.origin != null) { + if ((window.document.origin != null) && (window.document.origin != "null")) { return window.history.state.apply(window.history, arguments); } },