mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
Simplified require-gathering.
This commit is contained in:
parent
48c04ee33f
commit
bfaffc98df
@ -5,23 +5,10 @@
|
||||
(function(){
|
||||
"use strict";
|
||||
const {utils: Cu} = Components;
|
||||
var chrome = {
|
||||
Cc: Components.classes,
|
||||
Ci: Components.interfaces,
|
||||
Cm: Components.manager,
|
||||
Cr: Components.results,
|
||||
Cu: Components.utils,
|
||||
CC: Components.Constructor,
|
||||
components: Components,
|
||||
ChromeWorker: undefined
|
||||
};
|
||||
const { Loader, Require, unload, Module} = Components.utils.import('resource://gre/modules/commonjs/toolkit/loader.js');
|
||||
var loader = Loader({
|
||||
paths: {
|
||||
"": "resource://gre/modules/commonjs/"
|
||||
},
|
||||
modules: {
|
||||
"chrome": chrome
|
||||
}
|
||||
});
|
||||
var requirer = Module("resource://canvasblocker-at-kkapsner-dot-de/data/frame.js", "./data/frame.js");
|
||||
|
Loading…
x
Reference in New Issue
Block a user