This repository was archived by the owner on Dec 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
extension-getting-started-part1/part1
extension-getting-started-part2/extension-getting-started-part2 Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " NASA Picture of the day viewer" ,
3
3
"version" : " 0.0.0.1" ,
4
- "manifest_version" : 2 ,
4
+ "manifest_version" : 3 ,
5
5
"description" : " A chromium extension to show NASA's Picture of the Day." ,
6
6
"icons" : {
7
7
"16" : " icons/nasapod16x16.png" ,
8
8
"32" : " icons/nasapod32x32.png" ,
9
9
"48" : " icons/nasapod48x48.png" ,
10
10
"128" : " icons/nasapod128x128.png"
11
11
},
12
- "browser_action " : {
12
+ "action " : {
13
13
"default_popup" : " popup/popup.html"
14
14
}
15
15
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " NASA Picture of the day viewer" ,
3
3
"version" : " 0.0.0.1" ,
4
- "manifest_version" : 2 ,
4
+ "manifest_version" : 3 ,
5
5
"description" : " A chromium extension to show NASA's Picture of the Day." ,
6
6
"icons" : {
7
7
"16" : " icons/nasapod16x16.png" ,
8
8
"32" : " icons/nasapod32x32.png" ,
9
9
"48" : " icons/nasapod48x48.png" ,
10
10
"128" : " icons/nasapod128x128.png"
11
11
},
12
- "browser_action " : {
12
+ "action " : {
13
13
"default_popup" : " popup/popup.html"
14
14
},
15
15
"content_scripts" : [
21
21
}
22
22
],
23
23
"web_accessible_resources" : [
24
- " images/*.jpeg"
24
+ {
25
+ "resources" : [" images/*.jpeg" ],
26
+ "matches" : [" <all_urls>" ]
27
+ }
25
28
]
26
29
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if (sendMessageId) {
5
5
chrome . tabs . sendMessage (
6
6
tabs [ 0 ] . id ,
7
7
{
8
- url : chrome . extension . getURL ( "images/stars.jpeg" ) ,
8
+ url : chrome . runtime . getURL ( "images/stars.jpeg" ) ,
9
9
imageDivId : `${ guidGenerator ( ) } ` ,
10
10
tabId : tabs [ 0 ] . id
11
11
} ,
You can’t perform that action at this time.
0 commit comments