mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 11:47:58 +01:00
Pass encoding argument to loadSubScript.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
modules.load = function load(script) {
|
modules.load = function load(script) {
|
||||||
for (let [i, base] in Iterator(prefix)) {
|
for (let [i, base] in Iterator(prefix)) {
|
||||||
try {
|
try {
|
||||||
loader.loadSubScript(base + script + ".js", modules);
|
loader.loadSubScript(base + script + ".js", modules, "UTF-8");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ const Dactyl = Module("dactyl", {
|
|||||||
* should be loaded.
|
* should be loaded.
|
||||||
*/
|
*/
|
||||||
loadScript: function (uri, context) {
|
loadScript: function (uri, context) {
|
||||||
services.get("subscriptLoader").loadSubScript(uri, context);
|
services.get("subscriptLoader").loadSubScript(uri, context, File.defaultEncoding);
|
||||||
},
|
},
|
||||||
|
|
||||||
userEval: function (str, context) {
|
userEval: function (str, context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user