mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 02:12:32 +02:00
Pass encoding argument to loadSubScript.
This commit is contained in:
1 parent
634a26c98d
commit
0c76304f20
2 files changed
+2
-2
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user