Skip to content

Commit

Permalink
https and popup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ben1one committed Dec 13, 2022
1 parent 643bd15 commit c4ffdf8
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 69 deletions.
14 changes: 12 additions & 2 deletions background_with_deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,18 @@ googleShareButton.onProviderShared = function(providerId, title, sharedUrl) {
var providerUrl = getPopulatedUrl_(provider.url, title, shortUrl);
newWindow.location.replace(providerUrl)
})
}else {
window.open(getPopulatedUrl_(provider.url, title, sharedUrl), "", "menubar=1,resizable=1,width=800,height=570")
} else {
chrome.windows.create({
url: getPopulatedUrl_(provider.url, title, sharedUrl),
width: 800,
height: 650,
top: 200,
left: 200,
type: "popup",
}, function (win) {
chrome.windows.update(win.id, { focused: false });
});
// window.open(getPopulatedUrl_(provider.url, title, sharedUrl), "", "menubar=1,resizable=1,width=800,height=570")
}
}
}else {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"default_popup": "popup.html"
},
"name": "__MSG_sharebutton_extension_name__",
"version": "1.1.0.14",
"version": "1.1.0.15",
"manifest_version": 2,
"default_locale": "en",
"description": "Use the Share extension to share webpages via your social networks, email and blogs.",
Expand Down
Loading

0 comments on commit c4ffdf8

Please sign in to comment.