mirror of
https://github.com/pierre42100/pdfviewer.communiquons.org
synced 2024-12-28 04:28:51 +00:00
Fix load issue
This commit is contained in:
parent
433a7a14a8
commit
4f32997501
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user