Commit d08f2f9 1 parent 6abcca2 commit d08f2f9 Copy full SHA for d08f2f9
File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
import createCache from "@emotion/cache"
2
2
import { CacheProvider } from "@emotion/react"
3
3
import { Alert , AlertTitle , Snackbar } from "@mui/material"
4
- import icon from "data-base64:~assets/icon.png"
5
4
import { useEffect , useState } from "react"
6
5
7
6
import { usePort } from "@plasmohq/messaging/hook"
@@ -45,7 +44,13 @@ function PlasmoOverlay() {
45
44
< Alert
46
45
onClose = { handleClose }
47
46
severity = { notify . data . type || "success" }
48
- icon = { < img src = { icon } alt = "" style = { { width : 24 , height : 24 } } /> }
47
+ icon = {
48
+ < img
49
+ src = { chrome . runtime . getURL ( "assets/icon.png" ) }
50
+ alt = ""
51
+ style = { { width : 24 , height : 24 } }
52
+ />
53
+ }
49
54
sx = { { width : 320 } } >
50
55
{ notify . data . title && (
51
56
< AlertTitle > { notify . data . title } </ AlertTitle >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gopeed-browser-extension" ,
3
3
"displayName" : " Gopeed" ,
4
- "version" : " 1.0.0 " ,
4
+ "version" : " 1.0.1 " ,
5
5
"description" : " Gopeed browser extension" ,
6
6
"homepage" : " https://gopeed.com" ,
7
7
"author" : " Levi" ,
47
47
" http://*/*" ,
48
48
" https://*/*"
49
49
],
50
+ "web_accessible_resources" : [
51
+ {
52
+ "matches" : [
53
+ " <all_urls>"
54
+ ],
55
+ "resources" : [
56
+ " assets/icon.png"
57
+ ]
58
+ }
59
+ ],
50
60
"permissions" : [
51
61
" downloads" ,
52
62
" cookies" ,
You can’t perform that action at this time.
0 commit comments