Skip to content

Commit

Permalink
avoid some harmless messages in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
Quicksaver committed Dec 8, 2016
1 parent 0d2bb56 commit 2f55cb4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resource/modules/findInTabsMini.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// VERSION 2.2.9
// VERSION 2.2.10

this.FITMini = {
get broadcaster() { return $(FITSandbox.kBroadcasterId); },
Expand Down Expand Up @@ -169,7 +169,9 @@ this.FITMini = {
},

getState: function(forceEmpty) {
let state = {};
let state = {
query: ''
};

if(FITFull) {
state.lastBrowser = FIT.lastBrowser;
Expand Down Expand Up @@ -278,7 +280,7 @@ this.FITMini = {
Listeners.add(gBrowser.tabContainer, 'TabRemotenessChange', this);

Piggyback.add('FITmini', gBrowser, 'showOnlyTheseTabs', () => {
if(this.sidebar) {
if(this.sidebar && this.sidebar[objName]) {
this.sidebar[objName].FIT.shouldFindAll();
}
}, Piggyback.MODE_AFTER);
Expand Down

0 comments on commit 2f55cb4

Please sign in to comment.