mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 00:28:06 +02:00
Fix closing script tag.
This commit is contained in:
parent
51d831ed03
commit
58a697697f
1 changed files with 2 additions and 1 deletions
|
@ -573,7 +573,8 @@ var FontLoader = {
|
|||
src += ' window.onload = function fontLoaderOnload() {\n';
|
||||
src += ' parent.postMessage(JSON.stringify(fontNames), "*");\n';
|
||||
src += ' }';
|
||||
src += '</script></head><body>';
|
||||
// Hack so the end script tag isn't counted if this is inline JS.
|
||||
src += '</scr' + 'ipt></head><body>';
|
||||
for (var i = 0, ii = names.length; i < ii; ++i) {
|
||||
src += '<p style="font-family:\'' + names[i] + '\'">Hi</p>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue