single-file-core 1.0.43 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",
@@ -323,7 +323,7 @@
323
323
  getDetailObject(...arguments).then(detail => dispatchEvent(new CustomEvent(NEW_FONT_FACE_EVENT, { detail })));
324
324
  return new FontFace(...arguments);
325
325
  };
326
- globalThis.FontFace.toString = function () { return "function FontFace() { [native code] }"; };
326
+ globalThis.FontFace.prototype = FontFace.prototype;
327
327
  const deleteFont = document.fonts.delete;
328
328
  document.fonts.delete = function (fontFace) {
329
329
  getDetailObject(fontFace.family).then(detail => dispatchEvent(new CustomEvent(DELETE_FONT_EVENT, { detail })));