Skip to content

Commit

Permalink
fixes bug with button being injected on non-board pages
Browse files Browse the repository at this point in the history
  • Loading branch information
laander committed Dec 3, 2015
1 parent 0b33fac commit 5195b84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Trello BirdsEye
# Trello Birds-eye View

> Chrome Extension for minimal board styling giving you a birds-eye view in Trello
> Chrome Extension for minimalistic board/card styling giving you a birds-eye view in Trello
![Before & after](images/screenshot-comparison.gif)

Expand Down
5 changes: 3 additions & 2 deletions content-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ function clickButton() {

// Checks whether the button element is present - if not (user switched page/board), then init
function shouldInit(event) {
var buttonTarget = document.getElementsByClassName('birdseye-button');
if (buttonTarget.length === 0) {
var buttonTarget = document.getElementsByClassName('board-header-btns mod-right');
var buttonContainer = document.getElementsByClassName('birdseye-button');
if (buttonTarget.length !== 0 && buttonContainer.length === 0) {
initApplication();
}
}
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "Trello BirdsEye",
"name": "Trello Birds-eye",
"short_name": "trello-birdseye",
"description": "Minimalize the Trello board interface for better overview",
"version": "1.0.0",
"version": "1.0.1",
"icons": {
"16": "images/icon-16.png",
"48": "images/icon-48.png",
Expand Down

0 comments on commit 5195b84

Please sign in to comment.