add folders
This commit is contained in:
parent
3e59cb66b8
commit
bd66852d2f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -238,6 +238,8 @@ BdApi.setBDData = function(key, data) {
|
||||||
|
|
||||||
const makeAddonAPI = (cookie, list, manager) => new class AddonAPI {
|
const makeAddonAPI = (cookie, list, manager) => new class AddonAPI {
|
||||||
|
|
||||||
|
get folder() {return manager.folder;}
|
||||||
|
|
||||||
isEnabled(name) {
|
isEnabled(name) {
|
||||||
return !!cookie[name];
|
return !!cookie[name];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,8 @@ import DataStore from "./dataStore";
|
||||||
import BDEvents from "./bdEvents";
|
import BDEvents from "./bdEvents";
|
||||||
import Utils from "./utils";
|
import Utils from "./utils";
|
||||||
|
|
||||||
function PluginModule() {
|
class PluginModule {
|
||||||
|
get folder() {return ContentManager.pluginsFolder;}
|
||||||
}
|
}
|
||||||
|
|
||||||
PluginModule.prototype.loadPlugins = function () {
|
PluginModule.prototype.loadPlugins = function () {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import BDEvents from "./bdEvents";
|
||||||
import Utils from "./utils";
|
import Utils from "./utils";
|
||||||
import DOM from "./domtools";
|
import DOM from "./domtools";
|
||||||
|
|
||||||
function ThemeModule() {
|
class ThemeModule {
|
||||||
|
get folder() {return ContentManager.themesFolder;}
|
||||||
}
|
}
|
||||||
|
|
||||||
ThemeModule.prototype.loadThemes = function () {
|
ThemeModule.prototype.loadThemes = function () {
|
||||||
|
|
Loading…
Reference in New Issue