From 0c76304f205ec9211e9b1052f9af19b2d017df59 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 30 Sep 2010 16:40:42 -0400 Subject: [PATCH] Pass encoding argument to loadSubScript. --- common/content/dactyl-overlay.js | 2 +- common/content/dactyl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/dactyl-overlay.js b/common/content/dactyl-overlay.js index 4b661344..76724ff1 100644 --- a/common/content/dactyl-overlay.js +++ b/common/content/dactyl-overlay.js @@ -17,7 +17,7 @@ modules.load = function load(script) { for (let [i, base] in Iterator(prefix)) { try { - loader.loadSubScript(base + script + ".js", modules); + loader.loadSubScript(base + script + ".js", modules, "UTF-8"); return; } catch (e) { diff --git a/common/content/dactyl.js b/common/content/dactyl.js index bb0b12e2..35e40281 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -301,7 +301,7 @@ const Dactyl = Module("dactyl", { * should be loaded. */ loadScript: function (uri, context) { - services.get("subscriptLoader").loadSubScript(uri, context); + services.get("subscriptLoader").loadSubScript(uri, context, File.defaultEncoding); }, userEval: function (str, context) {