mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Syntax changed that will help minifiers/compilers (such as the Closure Compiler) in their processing. In particular, preventing said minifiers/compilers from making dangerous renames.
This commit is contained in:
parent
438e3c8f6d
commit
0fbbc5a840
5 changed files with 40 additions and 19 deletions
|
@ -3141,8 +3141,9 @@ var Font = (function FontClosure() {
|
|||
var styleSheet = styleElement.sheet;
|
||||
styleSheet.insertRule(rule, styleSheet.cssRules.length);
|
||||
|
||||
if (PDFJS.pdfBug && FontInspector.enabled)
|
||||
FontInspector.fontAdded(this, url);
|
||||
if (PDFJS.pdfBug && 'FontInspector' in globalScope &&
|
||||
globalScope['FontInspector'].enabled)
|
||||
globalScope['FontInspector'].fontAdded(this, url);
|
||||
|
||||
return rule;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue