import {pluginCookie, themeCookie, bdplugins, bdthemes, settingsCookie, settings, bdEmotes} from "../0globals"; import mainCore from "./core"; import Utils from "./utils"; import BDV2 from "./v2"; import DataStore from "./dataStore"; import pluginModule from "./pluginModule"; import themeModule from "./themeModule"; import settingsPanel from "./settingsPanel"; const BdApi = { get React() { return BDV2.React; }, get ReactDOM() { return BDV2.ReactDom; }, get ReactComponent() {return BDV2.ReactComponent;}, get WindowConfigFile() {return Utils.WindowConfigFile;}, get settings() {return settings;}, get emotes() {return bdEmotes;}, get screenWidth() { return Math.max(document.documentElement.clientWidth, window.innerWidth || 0); }, get screenHeight() { return Math.max(document.documentElement.clientHeight, window.innerHeight || 0); } }; BdApi.getAllWindowPreferences = function() { return Utils.getAllWindowPreferences(); }; BdApi.getWindowPreference = function(key) { return Utils.getWindowPreference(key); }; BdApi.setWindowPreference = function(key, value) { return Utils.setWindowPreference(key, value); }; //Inject CSS to document head //id = id of element //css = custom css BdApi.injectCSS = function (id, css) { $("head").append($("