Fixed offline copy issue with Chrome

This commit is contained in:
Giulio Cesare Solaroli 2015-12-09 11:18:34 +01:00
parent d0eabc16f6
commit da74d23be6

View File

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