Commit 6123d3a5 authored by Oleg Korshul's avatar Oleg Korshul Committed by GitHub

Merge pull request #27 from ONLYOFFICE/release/v4.0

Release/v4.0
parents d8657ed2 7de38e8b
......@@ -867,7 +867,7 @@
// Offline mode
baseEditorsApi.prototype.asc_isOffline = function()
{
return false;
return (window.location.protocol.indexOf("file") == 0) ? true : false;
};
baseEditorsApi.prototype.asc_getUrlType = function(url)
{
......
......@@ -655,7 +655,8 @@
asc_docs_api.prototype.SetReaderModeOnly = function()
{
this.isOnlyReaderMode = true;
this.ImageLoader.bIsAsyncLoadDocumentImages = false;
if (this.ImageLoader)
this.ImageLoader.bIsAsyncLoadDocumentImages = false;
};
asc_docs_api.prototype.IncreaseReaderFontSize = function()
......@@ -7875,6 +7876,9 @@ background-repeat: no-repeat;\
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
asc_docs_api.superclass._onEndLoadSdk.call(this);
if (this.isOnlyReaderMode)
this.ImageLoader.bIsAsyncLoadDocumentImages = false;
};
asc_docs_api.prototype.asc_Recalculate = function(bIsUpdateInterface)
......
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