add some stubs for later

This commit is contained in:
Zack Rauen 2020-04-23 18:12:01 -04:00
parent 4c0611af82
commit ca2aca700d
2 changed files with 38 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -230,6 +230,10 @@ BdApi.isThemeEnabled = function(name) {
return ThemeManager.isEnabled(theme.id);
};
BdApi.isSettingEnabled = function(name) {
return null;
};
// Gets data
BdApi.getBDData = function(key) {
return DataStore.getBDData(key);
@ -281,4 +285,37 @@ BdApi.setBDData = function(key, data) {
// BdApi.Plugins = makeAddonAPI(pluginCookie, bdplugins, pluginModule);
// 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;