Commit 9263cd9a authored by Oleg Korshul's avatar Oleg Korshul

isOffline check protocol

parent 7ae5a8ae
...@@ -862,7 +862,7 @@ ...@@ -862,7 +862,7 @@
// Offline mode // Offline mode
baseEditorsApi.prototype.asc_isOffline = function() baseEditorsApi.prototype.asc_isOffline = function()
{ {
return false; return (window.location.protocol.indexOf("file") == 0) ? true : false;
}; };
baseEditorsApi.prototype.asc_getUrlType = function(url) baseEditorsApi.prototype.asc_getUrlType = function(url)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment