|
@@ -237,7 +237,7 @@ if (typeof PDFJS === 'undefined') {
|
|
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
window.atob = function (input) {
|
|
window.atob = function (input) {
|
|
input = input.replace(/=+$/, '');
|
|
input = input.replace(/=+$/, '');
|
|
- if (input.length % 4 == 1) {
|
|
|
|
|
|
+ if (input.length % 4 === 1) {
|
|
throw new Error('bad atob input');
|
|
throw new Error('bad atob input');
|
|
}
|
|
}
|
|
for (
|
|
for (
|
|
@@ -293,7 +293,7 @@ if (typeof PDFJS === 'undefined') {
|
|
var dataset = {};
|
|
var dataset = {};
|
|
for (var j = 0, jj = this.attributes.length; j < jj; j++) {
|
|
for (var j = 0, jj = this.attributes.length; j < jj; j++) {
|
|
var attribute = this.attributes[j];
|
|
var attribute = this.attributes[j];
|
|
- if (attribute.name.substring(0, 5) != 'data-') {
|
|
|
|
|
|
+ if (attribute.name.substring(0, 5) !== 'data-') {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
var key = attribute.name.substring(5).replace(/\-([a-z])/g,
|
|
var key = attribute.name.substring(5).replace(/\-([a-z])/g,
|
|
@@ -416,7 +416,7 @@ if (typeof PDFJS === 'undefined') {
|
|
function isDisabled(node) {
|
|
function isDisabled(node) {
|
|
return node.disabled || (node.parentNode && isDisabled(node.parentNode));
|
|
return node.disabled || (node.parentNode && isDisabled(node.parentNode));
|
|
}
|
|
}
|
|
- if (navigator.userAgent.indexOf('Opera') != -1) {
|
|
|
|
|
|
+ if (navigator.userAgent.indexOf('Opera') !== -1) {
|
|
// use browser detection since we cannot feature-check this bug
|
|
// use browser detection since we cannot feature-check this bug
|
|
document.addEventListener('click', ignoreIfTargetDisabled, true);
|
|
document.addEventListener('click', ignoreIfTargetDisabled, true);
|
|
}
|
|
}
|