Skip to content

Commit

Permalink
Close popup after finished saving bookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhiFadlillah committed Aug 19, 2019
1 parent 48c6ec5 commit 6938ebf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,5 @@ btnSave.addEventListener("click", (e) => {

browser.runtime.sendMessage(message)
.catch(err => showError(err))
.finally(() => {
btnSave.style.display = "block";
loading.style.display = "none";
});
.finally(() => window.close());
});

0 comments on commit 6938ebf

Please sign in to comment.