mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Reset the styleElement
when clearing out loaded fonts (bug 1232017)
*This is a follow-up to PR 6571.* Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1232071.
This commit is contained in:
parent
4d6f3c85e0
commit
f0e4795302
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ FontLoader.prototype = {
|
|||
var styleElement = this.styleElement;
|
||||
if (styleElement) {
|
||||
styleElement.parentNode.removeChild(styleElement);
|
||||
styleElement = this.styleElement = null;
|
||||
}
|
||||
//#if !(MOZCENTRAL)
|
||||
this.nativeFontFaces.forEach(function(nativeFontFace) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue