mirror of
https://github.com/dragonwocky/obsidian-tray.git
synced 2025-04-02 19:19:03 +00:00
merge #51: expose windowing to other plugins
Expose Windowing APIs to Other Plugins
This commit is contained in:
commit
f4e827253d
6
main.js
6
main.js
@ -478,6 +478,12 @@ class TrayPlugin extends obsidian.Plugin {
|
||||
cleanup();
|
||||
}
|
||||
|
||||
getCurrentWindow = getCurrentWindow
|
||||
getWindows = getWindows;
|
||||
showWindows = showWindows;
|
||||
hideWindows = hideWindows;
|
||||
toggleWindows = toggleWindows;
|
||||
|
||||
async loadSettings() {
|
||||
const DEFAULT_SETTINGS = OPTIONS.map((opt) => ({ [opt.key]: opt.default }));
|
||||
this.settings = Object.assign(...DEFAULT_SETTINGS, await this.loadData());
|
||||
|
Loading…
Reference in New Issue
Block a user