mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 12:06:31 +02:00
Fixed relative require paths
This commit is contained in:
parent
9f3da67cf2
commit
12137402de
13 changed files with 51 additions and 30 deletions
|
@ -5,14 +5,21 @@
|
|||
(function(){
|
||||
"use strict";
|
||||
|
||||
const scope = require.register("./gui", {});
|
||||
let scope;
|
||||
if ((typeof exports) !== "undefined"){
|
||||
scope = exports;
|
||||
}
|
||||
else {
|
||||
scope = require.register("./gui", {});
|
||||
}
|
||||
|
||||
const {error, warning, message, notice, verbose, setPrefix: setLogPrefix} = require("./logging");
|
||||
const {error, warning, message, notice, verbose, setPrefix: setLogPrefix} = require("../lib/logging");
|
||||
const extension = require("../lib/extension");
|
||||
|
||||
scope.createCollapser = function(){
|
||||
const messages = {
|
||||
more: browser.i18n.getMessage("more"),
|
||||
less: browser.i18n.getMessage("less")
|
||||
more: extension.getTranslation("more"),
|
||||
less: extension.getTranslation("less")
|
||||
};
|
||||
|
||||
return function createCollapser(container){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue