mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 05:57:58 +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);
|
.getService(Components.interfaces.mozIJSSubScriptLoader);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
loader.loadSubScript(uri.spec, modules);
|
loader.loadSubScript(uri.spec, plugins);
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
}}} ***** END LICENSE BLOCK *****/
|
}}} ***** END LICENSE BLOCK *****/
|
||||||
|
|
||||||
const plugins = {};
|
const plugins = {};
|
||||||
|
plugins.__proto__ = modules;
|
||||||
|
|
||||||
const liberator = (function () //{{{
|
const liberator = (function () //{{{
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user