diff --git a/compendium-browser.js b/compendium-browser.js index f52bf2c..a8ace5b 100644 --- a/compendium-browser.js +++ b/compendium-browser.js @@ -1909,10 +1909,10 @@ class CompendiumBrowser extends Application { static async addTidySheetButton(cb, html, actor){ - html.find('.spell-browser-btn').remove() + await html.find('.spell-browser-btn').remove(); - let tabBar = html.find("div.tab.spellbook.active .spellcasting-ability") - console.log(tabBar) + let tabBar = html.find("div.tab.spellbook .spellcasting-ability") + // console.log(tabBar) const cbButton = $(`
`); tabBar.append(cbButton) @@ -1920,9 +1920,10 @@ class CompendiumBrowser extends Application { CompendiumBrowser.addSpellsButton(cbButton, actor.actor) } - static addDefaultSheetButton(cb, html, actor){ + static async addDefaultSheetButton(cb, html, actor){ + + await html.find('.spell-browser-btn').remove(); - html.find('.spell-browser-btn').remove() let tabBar = html.find("div.spellbook-filters") // console.log(tabBar) const cbButton = $(`
`);