mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 22:52:28 +01:00
Make substring preview less quirky
This commit is contained in:
@@ -776,7 +776,7 @@ lookup:
|
||||
// no need (actually forbidden) to add: js <<EOF ... EOF around those files
|
||||
source: function (filename, silent)
|
||||
{
|
||||
var wasSourcing = ioManager.sourcing;
|
||||
let wasSourcing = ioManager.sourcing;
|
||||
try
|
||||
{
|
||||
var file = ioManager.getFile(filename);
|
||||
@@ -808,7 +808,7 @@ lookup:
|
||||
// handle pure javascript files specially
|
||||
if (/\.js$/.test(filename))
|
||||
{
|
||||
var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user