Skip to content
This repository has been archived by the owner on May 26, 2018. It is now read-only.

Commit

Permalink
Fix issue with third arg in addObserver call (#878)
Browse files Browse the repository at this point in the history
- fixes #868
  • Loading branch information
Dave Justice committed May 24, 2017
1 parent cbe2a12 commit a3abcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/window-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ const onWindowClosed = (evt) => {
}
if (!minvidExists) closeWindow();
};
Services.obs.addObserver(onWindowClosed, 'xul-window-destroyed');
Services.obs.addObserver(onWindowClosed, 'xul-window-destroyed', false); // eslint-disable-line mozilla/no-useless-parameters

// This handles the case where the min vid window is kept open
// after closing the last firefox window.
function closeRequested() {
destroy(true);
}
Services.obs.addObserver(closeRequested, 'browser-lastwindow-close-requested');
Services.obs.addObserver(closeRequested, 'browser-lastwindow-close-requested', false); // eslint-disable-line mozilla/no-useless-parameters

function closeWindow() {
// If the window is gone, a 'dead object' error will be thrown; discard it.
Expand Down

0 comments on commit a3abcd7

Please sign in to comment.