avoid a CSP error. silence pdfjs warnings
This commit is contained in:
parent
9707433944
commit
9527a5def7
@ -5277,7 +5277,7 @@ g = function () {
|
|||||||
return this;
|
return this;
|
||||||
}();
|
}();
|
||||||
try {
|
try {
|
||||||
g = g || Function("return this")() || (1, eval)("this");
|
g = g || function () { return this; }; //Function("return this")() || (1, eval)("this");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window;
|
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window;
|
||||||
}
|
}
|
||||||
@ -12844,4 +12844,4 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
|
|||||||
/***/ })
|
/***/ })
|
||||||
/******/ ]);
|
/******/ ]);
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=pdf.js.map
|
//# sourceMappingURL=pdf.js.map
|
||||||
|
|||||||
@ -1550,7 +1550,7 @@ var PDFViewerApplication = {
|
|||||||
|
|
||||||
_this5.documentInfo = info;
|
_this5.documentInfo = info;
|
||||||
_this5.metadata = metadata;
|
_this5.metadata = metadata;
|
||||||
console.log('PDF ' + pdfDocument.fingerprint + ' [' + info.PDFFormatVersion + ' ' + (info.Producer || '-').trim() + ' / ' + (info.Creator || '-').trim() + ']' + ' (PDF.js: ' + (_pdfjsLib.version || '-') + (!_pdfjsLib.PDFJS.disableWebGL ? ' [WebGL]' : '') + ')');
|
//console.log('PDF ' + pdfDocument.fingerprint + ' [' + info.PDFFormatVersion + ' ' + (info.Producer || '-').trim() + ' / ' + (info.Creator || '-').trim() + ']' + ' (PDF.js: ' + (_pdfjsLib.version || '-') + (!_pdfjsLib.PDFJS.disableWebGL ? ' [WebGL]' : '') + ')');
|
||||||
var pdfTitle = void 0;
|
var pdfTitle = void 0;
|
||||||
if (metadata && metadata.has('dc:title')) {
|
if (metadata && metadata.has('dc:title')) {
|
||||||
var title = metadata.get('dc:title');
|
var title = metadata.get('dc:title');
|
||||||
@ -3786,7 +3786,7 @@ document.webL10n = function (window, document, undefined) {
|
|||||||
xhrLoadText(url, function (content) {
|
xhrLoadText(url, function (content) {
|
||||||
parseRawLines(content, false, callback);
|
parseRawLines(content, false, callback);
|
||||||
}, function () {
|
}, function () {
|
||||||
console.warn(url + ' not found.');
|
//console.warn(url + ' not found.');
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -4231,7 +4231,7 @@ document.webL10n = function (window, document, undefined) {
|
|||||||
function getL10nData(key, args, fallback) {
|
function getL10nData(key, args, fallback) {
|
||||||
var data = gL10nData[key];
|
var data = gL10nData[key];
|
||||||
if (!data) {
|
if (!data) {
|
||||||
console.warn('#' + key + ' is undefined.');
|
//console.warn('#' + key + ' is undefined.');
|
||||||
if (!fallback) {
|
if (!fallback) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -4282,7 +4282,7 @@ document.webL10n = function (window, document, undefined) {
|
|||||||
if (!l10n.id) return;
|
if (!l10n.id) return;
|
||||||
var data = getL10nData(l10n.id, l10n.args);
|
var data = getL10nData(l10n.id, l10n.args);
|
||||||
if (!data) {
|
if (!data) {
|
||||||
console.warn('#' + l10n.id + ' is undefined.');
|
//console.warn('#' + l10n.id + ' is undefined.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (data[gTextProp]) {
|
if (data[gTextProp]) {
|
||||||
@ -9754,4 +9754,4 @@ if (document.readyState === 'interactive' || document.readyState === 'complete')
|
|||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
/******/ ]);
|
/******/ ]);
|
||||||
//# sourceMappingURL=viewer.js.map
|
//# sourceMappingURL=viewer.js.map
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user