Skip to content

Commit

Permalink
Fix duplicated star toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
lpakula committed Aug 22, 2022
1 parent 026fffa commit 69896c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inboxy: Inbox Bundles for Gmail",
"version": "1.6.2",
"name": "inboxy: Inbox Bundles for Gmail (Unofficial)",
"version": "0.0.10",
"description": "Adds Google Inbox bundles to Gmail",
"homepage_url": "https://www.inboxymail.com",
"background": {
Expand Down Expand Up @@ -44,4 +44,4 @@
}
],
"manifest_version": 3
}
}
3 changes: 2 additions & 1 deletion src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ function startObservers() {

function addPinnedToggle() {
const searchForm = document.querySelector(Selectors.SEARCH_FORM).parentNode;
searchForm.appendChild((new PinnedToggle()).create());
let toggle = searchForm.querySelectorAll('.pinned-toggle')
if(!toggle.length) searchForm.appendChild((new PinnedToggle()).create());
}

function hideBulkActionButtonsIfNecessary() {
Expand Down

0 comments on commit 69896c8

Please sign in to comment.