mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Cleanup require system
This commit is contained in:
parent
11b8ddfcc8
commit
574efa23e7
35 changed files with 45 additions and 67 deletions
|
@ -5,6 +5,7 @@
|
|||
"use strict";
|
||||
|
||||
const settings = require("./settings");
|
||||
const sanitationRules = require("./sanitationRules");
|
||||
|
||||
var title = document.createElement("h1");
|
||||
title.className = "title";
|
||||
|
@ -18,7 +19,6 @@
|
|||
|
||||
settings.onloaded(function(){
|
||||
const list = document.createElement("ul");
|
||||
const sanitationRules = require("./sanitationRules");
|
||||
sanitationRules.ruleset.forEach(function(ruleset){
|
||||
const rulesetContainer = document.createElement("li");
|
||||
rulesetContainer.textContent = browser.i18n.getMessage("sanitation_ruleset." + ruleset.name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue