@@ -39,7 +39,7 @@ singlefile.scriptLoader = (() => {
const frameScriptFiles = [
"/lib/browser-polyfill/custom-browser-polyfill.js",
- "/lib/font-face/font-face-proxy.js",
+ "/lib/hooks/hooks.js",
"/extension/index.js",
"/lib/single-file/util/doc-helper.js",
"/lib/single-file/util/timeout.js",
@@ -20,7 +20,7 @@
/* global window, addEventListener, dispatchEvent, CustomEvent, document, HTMLDocument */
-this.fontFaceProxy = this.fontFaceProxy || (() => {
+this.hooks = this.hooks || (() => {
const NEW_FONT_FACE_EVENT = "single-file-new-font-face";
const fontFaces = [];
@@ -18,7 +18,7 @@
* along with SingleFile. If not, see <http://www.gnu.org/licenses/>.
*/
-/* global fontFaceProxy */
+/* global hooks */
this.docHelper = this.docHelper || (() => {
@@ -355,8 +355,8 @@ this.docHelper = this.docHelper || (() => {
}
function getFontsData() {
- if (typeof fontFaceProxy != "undefined") {
- return fontFaceProxy.getFontsData();
+ if (typeof hooks != "undefined") {
+ return hooks.getFontsData();
@@ -17,7 +17,7 @@
"run_at": "document_start",
"js": [
"lib/browser-polyfill/custom-browser-polyfill.js",
- "lib/font-face/font-face-proxy.js",
+ "lib/hooks/hooks.js",
"extension/index.js",
"lib/single-file/util/doc-helper.js",
"lib/single-file/util/timeout.js",