Skip to content

Commit

Permalink
2.3.9 show the popup for the current url
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Jan 23, 2025
1 parent 3c77156 commit e95afb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stylus",
"version": "2.3.8",
"version": "2.3.9",
"description": "Redesign the web with Stylus, a user styles manager",
"license": "GPL-3.0-only",
"repository": "openstyles/stylus",
Expand Down
4 changes: 3 additions & 1 deletion src/background/popup-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default async function makePopupData() {
if (FIREFOX && tab.status === 'loading' && tab.url === kAboutBlank) {
tab = await waitForTabUrl(tab.id);
}
let url = tab.pendingUrl || tab.url || ''; // new Chrome uses pendingUrl while connecting
// In modern Chrome `url` is for the current tab's contents, so it may be undefined
// when a newly created tab is still connecting to `pendingUrl`.
let url = tab.url || tab.pendingUrl || '';
let tmp;
const td = tabCache.get(tab.id);
const isOwn = url.startsWith(ownRoot);
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stylus",
"version": "2.3.8",
"version": "2.3.9",
"minimum_chrome_version": "",
"description": "__MSG_description__",
"homepage_url": "https://add0n.com/stylus.html",
Expand Down

0 comments on commit e95afb2

Please sign in to comment.