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

Workaround for chrome's issue 145227

This commit is contained in:
Yury Delendik 2012-08-29 19:16:57 -05:00
parent c2cfa99cc8
commit deedb0a911

View file

@ -563,6 +563,8 @@ var FontLoader = {
src += '<script type="application/javascript">';
src += ' window.onload = function fontLoaderOnload() {\n';
src += ' parent.postMessage("' + requestId + '", "*");\n';
// Chrome stuck on loading (see chrome issue 145227) - resetting url
src += ' window.location = "about:blank";\n';
src += ' }';
// Hack so the end script tag isn't counted if this is inline JS.
src += '</scr' + 'ipt></head><body>';