Fix load issue

This commit is contained in:
Pierre Hubert 2018-08-20 16:58:27 +02:00
parent 433a7a14a8
commit 4f32997501

View File

@ -1898,7 +1898,7 @@ var validateFileURL = void 0;
} }
var fileOrigin = new URL(file, window.location.href).origin; var fileOrigin = new URL(file, window.location.href).origin;
if (fileOrigin !== viewerOrigin) { if (fileOrigin !== viewerOrigin) {
throw new Error('file origin does not match viewer\'s'); //throw new Error('file origin does not match viewer\'s');
} }
} catch (ex) { } catch (ex) {
var message = ex && ex.message; var message = ex && ex.message;