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
|
||||
|
||||
// #region Implementation
|
||||
Hooks.once(`renderSidebar`, (app) => {
|
||||
if (game.settings.get(__ID__, key) && !game.ready) {
|
||||
Hooks.on(`ready`, () => {
|
||||
if (game.settings.get(__ID__, key)) {
|
||||
Logger.debug(`setting:${key} | Expanding sidebar`);
|
||||
app.toggleExpanded(true);
|
||||
ui.sidebar.toggleExpanded(true);
|
||||
};
|
||||
});
|
||||
// #endregion Implementation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue