]> git.parisson.com Git - pdf.js.git/commitdiff
Fix closing script tag.
authorBrendan Dahl <brendan.dahl@gmail.com>
Wed, 8 Feb 2012 21:09:21 +0000 (13:09 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Wed, 8 Feb 2012 21:09:21 +0000 (13:09 -0800)
src/fonts.js

index b12707eb5ab111d694682c194b0f9a55f3e47bae..f8ae7de4c8d842bd39ed0f88fa202c0d2eb707f8 100644 (file)
@@ -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>';
       }