Skip to content

Commit

Permalink
Fixes the issue where addon randomly throws active is null uncaught e…
Browse files Browse the repository at this point in the history
…xception
  • Loading branch information
grssam committed Jun 15, 2011
1 parent d9424d2 commit 5722b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awesomeBarHD/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function addAwesomeBarHD(window) {
});
}

let temp = active;
let temp = categoryBox.active;
// Prepare a next visible category and wrap if at the very end
do {
if(temp.nextSibling.nextSibling==null) {
Expand All @@ -383,7 +383,7 @@ function addAwesomeBarHD(window) {
temp = temp.nextSibling.nextSibling;
}while (true);

temp = active;
let temp = categoryBox.active;
// Prepare a previous category unless already at the beginning and category not hidden
do {
//Wrapping if active is goCategory
Expand Down

0 comments on commit 5722b69

Please sign in to comment.