add some stubs for later
This commit is contained in:
parent
4c0611af82
commit
ca2aca700d
File diff suppressed because one or more lines are too long
|
@ -230,6 +230,10 @@ BdApi.isThemeEnabled = function(name) {
|
||||||
return ThemeManager.isEnabled(theme.id);
|
return ThemeManager.isEnabled(theme.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BdApi.isSettingEnabled = function(name) {
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
// Gets data
|
// Gets data
|
||||||
BdApi.getBDData = function(key) {
|
BdApi.getBDData = function(key) {
|
||||||
return DataStore.getBDData(key);
|
return DataStore.getBDData(key);
|
||||||
|
@ -281,4 +285,37 @@ BdApi.setBDData = function(key, data) {
|
||||||
// BdApi.Plugins = makeAddonAPI(pluginCookie, bdplugins, pluginModule);
|
// BdApi.Plugins = makeAddonAPI(pluginCookie, bdplugins, pluginModule);
|
||||||
// BdApi.Themes = makeAddonAPI(themeCookie, bdthemes, themeModule);
|
// BdApi.Themes = makeAddonAPI(themeCookie, bdthemes, themeModule);
|
||||||
|
|
||||||
|
BdApi.Plugins = BdApi.themes = new class AddonAPI {
|
||||||
|
|
||||||
|
get folder() {return "";}
|
||||||
|
|
||||||
|
isEnabled(name) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
enable(name) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
disable(name) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle(name) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
reload(name) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
get(name) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
getAll() {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
export default BdApi;
|
export default BdApi;
|
Loading…
Reference in New Issue