mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #2082 from yurydelendik/chrome-fontload
Workaround for chrome's issue 145227
This commit is contained in:
commit
59016bcf59
1 changed files with 2 additions and 0 deletions
|
@ -577,6 +577,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>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue