Commit 2c590e59 authored by Oleg Korshul's avatar Oleg Korshul

.

parent 5de9f308
......@@ -7619,6 +7619,15 @@ function Check_LoadingDataBeforePrepaste(_api, _fonts, _images, _callback)
aPrepeareFonts.push(new CFont(font_family, 0, "", 0));
};
var isDesktopEditor = (window["AscDesktopEditor"] !== undefined) ? true : false;
var isDesktopEditorLocal = false;
if (isDesktopEditor)
{
if (window["AscDesktopEditor"]["IsLocalFile"] && window["AscDesktopEditor"]["IsLocalFile"]())
isDesktopEditorLocal = true;
}
var aImagesToDownload = [];
var _mapLocal = {};
for (var image in _images)
......@@ -7653,7 +7662,7 @@ function Check_LoadingDataBeforePrepaste(_api, _fonts, _images, _callback)
else
_images[image] = "local";
}
else if (window["AscDesktopEditor"] !== undefined)
else if (isDesktopEditorLocal)
{
if (!g_oDocumentUrls.getImageLocal(src))
aImagesToDownload.push(src);
......
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