Fix the sidebar starting position for v14 (closes #42)
This commit is contained in:
parent
25fd180c5d
commit
c90137b18f
1 changed files with 3 additions and 3 deletions
|
|
@ -23,10 +23,10 @@ export function startSidebarExpanded() {
|
||||||
// #endregion Registration
|
// #endregion Registration
|
||||||
|
|
||||||
// #region Implementation
|
// #region Implementation
|
||||||
Hooks.once(`renderSidebar`, (app) => {
|
Hooks.on(`ready`, () => {
|
||||||
if (game.settings.get(__ID__, key) && !game.ready) {
|
if (game.settings.get(__ID__, key)) {
|
||||||
Logger.debug(`setting:${key} | Expanding sidebar`);
|
Logger.debug(`setting:${key} | Expanding sidebar`);
|
||||||
app.toggleExpanded(true);
|
ui.sidebar.toggleExpanded(true);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
// #endregion Implementation
|
// #endregion Implementation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue