Skip to content

Commit e97797d

Browse files
committed
Reorder condition for fix tree shaking by the platform
1 parent cc85302 commit e97797d

File tree

1 file changed

+2
-1
lines changed
  • extension-manifest-v3/src/background

1 file changed

+2
-1
lines changed

extension-manifest-v3/src/background/stats.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ observe('terms', async (terms) => {
5050
async function refreshIcon(tabId) {
5151
const options = await store.resolve(Options);
5252

53-
if (options.terms && __PLATFORM__ === 'opera') {
53+
if (__PLATFORM__ === 'opera' && options.terms) {
5454
shouldSetDangerBadgeForTabId(tabId).then((danger) => {
5555
setBadgeColor(danger ? '#f13436' /* danger-500 */ : undefined);
5656
});
@@ -245,6 +245,7 @@ function setupTabStats(tabId, request) {
245245
if (request.isHttp || request.isHttps) {
246246
tabStats.set(tabId, {
247247
domain: request.domain || request.hostname,
248+
url: request.url,
248249
trackers: [],
249250
});
250251
} else {

0 commit comments

Comments
 (0)