Skip to content

Commit

Permalink
avoid stacktrace if opened with about:blank etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyridal committed Sep 3, 2015
1 parent 30922f0 commit 97ecb2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ext/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,12 @@ function createPanel() {
contentScriptFile: self.data.url('password-fill-cs.js'),
attachTo: ['existing','top'],
onAttach: function(worker) {
if (!worker.tab || worker.tab.id != tabs.activeTab.id) worker.destroy();
worker.port.emit('the_password', d);
if (!worker.tab || worker.tab.id != tabs.activeTab.id) {
worker.destroy();
}
else {
worker.port.emit('the_password', d);
}
worker.destroy();
pm.destroy();
}
Expand Down

0 comments on commit 97ecb2e

Please sign in to comment.