Skip to content

Commit 3c27db4

Browse files
committed
chore(background): update setIcon
1 parent 8df5d1c commit 3c27db4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/background.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ async function sendUrl (url, domain, tabId) {
2323
}).catch((e) => {
2424
browser.browserAction.setIcon({
2525
tabId,
26-
path: {
27-
16: 'icons/icon-grey-128.png',
28-
32: 'icons/icon-grey-128.png'
29-
}
26+
path: 'icons/icon-grey-128.png'
3027
})
3128
setMapData(domain, e.response.data.statusCode === 400 ? 'noVue' : 'error')
3229
})
@@ -73,10 +70,7 @@ async function detectVue (tabId, url) {
7370
if (response.vueInfo.hasVue) {
7471
browser.browserAction.setIcon({
7572
tabId,
76-
path: {
77-
16: 'icons/icon-128.png',
78-
32: 'icons/icon-128.png'
79-
}
73+
path: 'icons/icon-128.png'
8074
})
8175
}
8276

0 commit comments

Comments
 (0)