diff --git a/src/module/compendium-browser.js b/src/module/compendium-browser.js index 41d9f0e..c257a84 100644 --- a/src/module/compendium-browser.js +++ b/src/module/compendium-browser.js @@ -239,11 +239,6 @@ class CompendiumBrowser extends Application { this.refreshList = tab; this.render(); }); - - // copy Javascript seach to clipboard - html.find(`#copy-search-${tab}`).click(async (ev) => { - this.copySearchToClipboard(tab); - }); } // settings @@ -1599,18 +1594,6 @@ class CompendiumBrowser extends Application { }; } - async copySearchToClipboard(tab) { - const text = this.getSearchText(tab); - - try { - await navigator.clipboard.writeText(text); - ui.notifications.info("Javascript Copied to clipboard"); - } catch(err) { - ui.notifications.warn("failed to copy javascript to clipboard, check logs for string"); - console.error("Failed to copy: ", err); - } - } - getSearchText(tab) { const target = `${tab}Filters`; diff --git a/src/templates/feat-browser.html b/src/templates/feat-browser.html index e96ab94..2bb0e57 100644 --- a/src/templates/feat-browser.html +++ b/src/templates/feat-browser.html @@ -22,7 +22,6 @@ - {{> "modules/compendium-browser/templates/filter-container.html" filters=featFilters}} diff --git a/src/templates/item-browser.html b/src/templates/item-browser.html index e0f34b1..c650843 100644 --- a/src/templates/item-browser.html +++ b/src/templates/item-browser.html @@ -22,7 +22,6 @@ - {{> "modules/compendium-browser/templates/filter-container.html" filters=itemFilters}} diff --git a/src/templates/npc-browser.html b/src/templates/npc-browser.html index e05f2b3..1cf7bd6 100644 --- a/src/templates/npc-browser.html +++ b/src/templates/npc-browser.html @@ -23,7 +23,6 @@ - {{> "modules/compendium-browser/templates/filter-container.html" filters=npcFilters}} diff --git a/src/templates/spell-browser.html b/src/templates/spell-browser.html index e525f50..19ee919 100644 --- a/src/templates/spell-browser.html +++ b/src/templates/spell-browser.html @@ -22,7 +22,6 @@ - {{> "modules/compendium-browser/templates/filter-container.html" filters=spellFilters}}