mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:52:29 +01:00
Load plugins/sourced JS files into the plugins namespace.
This commit is contained in:
@@ -793,7 +793,7 @@ lookup:
|
||||
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
||||
try
|
||||
{
|
||||
loader.loadSubScript(uri.spec, modules);
|
||||
loader.loadSubScript(uri.spec, plugins);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
||||
}}} ***** END LICENSE BLOCK *****/
|
||||
|
||||
const plugins = {};
|
||||
plugins.__proto__ = modules;
|
||||
|
||||
const liberator = (function () //{{{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user