Skip to content

Commit

Permalink
Close the popup when the user clicks a button
Browse files Browse the repository at this point in the history
  • Loading branch information
vu3jej committed May 27, 2019
1 parent 2067e34 commit e87f526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions popup/choose_type.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function listenForClicks() {
if (e.target.classList.contains("pagetype")) {
browser.tabs.query({active: true, currentWindow: true})
.then(sendMessageToTabs, reportError)
.then(window.close)
}
});
}
Expand Down

0 comments on commit e87f526

Please sign in to comment.