From: Brendan Dahl Date: Wed, 8 Feb 2012 21:09:21 +0000 (-0800) Subject: Fix closing script tag. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=58a697697fef1661f80389b228c205ca9b5d89d4;p=pdf.js.git Fix closing script tag. --- diff --git a/src/fonts.js b/src/fonts.js index b12707e..f8ae7de 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -573,7 +573,8 @@ var FontLoader = { src += ' window.onload = function fontLoaderOnload() {\n'; src += ' parent.postMessage(JSON.stringify(fontNames), "*");\n'; src += ' }'; - src += ''; + // Hack so the end script tag isn't counted if this is inline JS. + src += ''; for (var i = 0, ii = names.length; i < ii; ++i) { src += '

Hi

'; }