1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Set the style element ID.

This commit is contained in:
benbro 2012-05-31 12:05:06 +03:00
parent 4e39685753
commit 6de284acc9

View file

@ -2377,6 +2377,7 @@ var Font = (function FontClosure() {
var styleElement = document.getElementById('PDFJS_FONT_STYLE_TAG');
if (!styleElement) {
styleElement = document.createElement('style');
styleElement.id = 'PDFJS_FONT_STYLE_TAG';
document.documentElement.getElementsByTagName('head')[0].appendChild(
styleElement);
}