Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #34 from eclipse439/master
Browse files Browse the repository at this point in the history
Update Edge Extension Tutorials to use Manifest V3
  • Loading branch information
Reezaali authored Jun 24, 2022
2 parents 807c75a + 438b81e commit 6f0298b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions extension-getting-started-part1/part1/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "NASA Picture of the day viewer",
"version": "0.0.0.1",
"manifest_version": 2,
"manifest_version": 3,
"description": "A chromium extension to show NASA's Picture of the Day.",
"icons": {
"16": "icons/nasapod16x16.png",
"32": "icons/nasapod32x32.png",
"48": "icons/nasapod48x48.png",
"128": "icons/nasapod128x128.png"
},
"browser_action": {
"action": {
"default_popup": "popup/popup.html"
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "NASA Picture of the day viewer",
"version": "0.0.0.1",
"manifest_version": 2,
"manifest_version": 3,
"description": "A chromium extension to show NASA's Picture of the Day.",
"icons": {
"16": "icons/nasapod16x16.png",
"32": "icons/nasapod32x32.png",
"48": "icons/nasapod48x48.png",
"128": "icons/nasapod128x128.png"
},
"browser_action": {
"action": {
"default_popup": "popup/popup.html"
},
"content_scripts": [
Expand All @@ -21,6 +21,9 @@
}
],
"web_accessible_resources": [
"images/*.jpeg"
{
"resources": ["images/*.jpeg"],
"matches": ["<all_urls>"]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (sendMessageId) {
chrome.tabs.sendMessage(
tabs[0].id,
{
url: chrome.extension.getURL("images/stars.jpeg"),
url: chrome.runtime.getURL("images/stars.jpeg"),
imageDivId: `${guidGenerator()}`,
tabId: tabs[0].id
},
Expand Down

0 comments on commit 6f0298b

Please sign in to comment.