Skip to content

Commit

Permalink
fix(modal): #190
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Sep 5, 2024
1 parent 51162b8 commit d559111
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function open_popup(newurl, width, height) {
});
}

/* DO you want to open the url in a container? */
/* Do you want to open the url in a container? */
function open_container_tab(newurl, cookieStoreId) {
browser.runtime.sendMessage({
type: 'share-backid-container',
Expand Down Expand Up @@ -163,6 +163,13 @@ function registerShareButtons(tab) {
);

promisedButtons.then(function (buttons) {
var shares = document.querySelectorAll(".share").length;
if (shares === 1) {
document.getElementsByClassName("share")[0].click(function() {
window.close();
});
}

resize_buttons();
var buttonsWithPriority = Promise.all(
buttons.map(function (button) {
Expand Down

0 comments on commit d559111

Please sign in to comment.