From 4bc0537e80c6dbe9ec936e7aebf183e0a3bb80a6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 22 Jul 2022 06:21:14 +0200 Subject: [PATCH] Only display the extension line if buttons are placed --- extension/add_items_to_collection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/add_items_to_collection.js b/extension/add_items_to_collection.js index 92a9919..38f08f8 100644 --- a/extension/add_items_to_collection.js +++ b/extension/add_items_to_collection.js @@ -41,10 +41,10 @@ async function addAllSubscribedToCollection() { } function tidebringer() { - console.log("%c Tidebringer %chttps://github.com/Steffo99/tidebringer-firefox", "background-color: black; color: #a0f3f6;"); - const whereTheContainerShouldBePlaced = document.querySelector(".collectionAddItemsSection"); if(!whereTheContainerShouldBePlaced) return + + console.log("%c Tidebringer %chttps://github.com/Steffo99/tidebringer-firefox", "background-color: black; color: #a0f3f6;"); const container = document.createElement("div") container.id = "tidebringer-container"