avoid a CSP error. silence pdfjs warnings

pull/1/head
ansuz 8 years ago
parent 9707433944
commit 9527a5def7

@ -5277,7 +5277,7 @@ g = function () {
return this;
}();
try {
g = g || Function("return this")() || (1, eval)("this");
g = g || function () { return this; }; //Function("return this")() || (1, eval)("this");
} catch (e) {
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.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;
if (metadata && metadata.has('dc:title')) {
var title = metadata.get('dc:title');
@ -3786,7 +3786,7 @@ document.webL10n = function (window, document, undefined) {
xhrLoadText(url, function (content) {
parseRawLines(content, false, callback);
}, function () {
console.warn(url + ' not found.');
//console.warn(url + ' not found.');
callback();
});
}
@ -4231,7 +4231,7 @@ document.webL10n = function (window, document, undefined) {
function getL10nData(key, args, fallback) {
var data = gL10nData[key];
if (!data) {
console.warn('#' + key + ' is undefined.');
//console.warn('#' + key + ' is undefined.');
if (!fallback) {
return null;
}
@ -4282,7 +4282,7 @@ document.webL10n = function (window, document, undefined) {
if (!l10n.id) return;
var data = getL10nData(l10n.id, l10n.args);
if (!data) {
console.warn('#' + l10n.id + ' is undefined.');
//console.warn('#' + l10n.id + ' is undefined.');
return;
}
if (data[gTextProp]) {
@ -9754,4 +9754,4 @@ if (document.readyState === 'interactive' || document.readyState === 'complete')
/***/ })
/******/ ]);
//# sourceMappingURL=viewer.js.map
//# sourceMappingURL=viewer.js.map

Loading…
Cancel
Save