add folders

This commit is contained in:
Zack Rauen 2020-03-31 00:42:40 -04:00
parent 3e59cb66b8
commit bd66852d2f
5 changed files with 10 additions and 8 deletions

File diff suppressed because one or more lines are too long

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -238,6 +238,8 @@ BdApi.setBDData = function(key, data) {
const makeAddonAPI = (cookie, list, manager) => new class AddonAPI {
get folder() {return manager.folder;}
isEnabled(name) {
return !!cookie[name];
}

View File

@ -4,8 +4,8 @@ import DataStore from "./dataStore";
import BDEvents from "./bdEvents";
import Utils from "./utils";
function PluginModule() {
class PluginModule {
get folder() {return ContentManager.pluginsFolder;}
}
PluginModule.prototype.loadPlugins = function () {

View File

@ -5,8 +5,8 @@ import BDEvents from "./bdEvents";
import Utils from "./utils";
import DOM from "./domtools";
function ThemeModule() {
class ThemeModule {
get folder() {return ContentManager.themesFolder;}
}
ThemeModule.prototype.loadThemes = function () {