1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Simplified require-gathering.

This commit is contained in:
kkapsner 2016-12-14 12:26:01 +01:00
parent 48c04ee33f
commit bfaffc98df

View File

@ -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");