diff --git a/extension-getting-started-part1/part1/manifest.json b/extension-getting-started-part1/part1/manifest.json index 9805a51..9488b4c 100644 --- a/extension-getting-started-part1/part1/manifest.json +++ b/extension-getting-started-part1/part1/manifest.json @@ -1,7 +1,7 @@ { "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", @@ -9,7 +9,7 @@ "48": "icons/nasapod48x48.png", "128": "icons/nasapod128x128.png" }, - "browser_action": { + "action": { "default_popup": "popup/popup.html" } } diff --git a/extension-getting-started-part2/extension-getting-started-part2/manifest.json b/extension-getting-started-part2/extension-getting-started-part2/manifest.json index 603fa6a..bc8b70e 100644 --- a/extension-getting-started-part2/extension-getting-started-part2/manifest.json +++ b/extension-getting-started-part2/extension-getting-started-part2/manifest.json @@ -1,7 +1,7 @@ { "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", @@ -9,7 +9,7 @@ "48": "icons/nasapod48x48.png", "128": "icons/nasapod128x128.png" }, - "browser_action": { + "action": { "default_popup": "popup/popup.html" }, "content_scripts": [ @@ -21,6 +21,9 @@ } ], "web_accessible_resources": [ - "images/*.jpeg" + { + "resources": ["images/*.jpeg"], + "matches": [""] + } ] } diff --git a/extension-getting-started-part2/extension-getting-started-part2/popup/popup.js b/extension-getting-started-part2/extension-getting-started-part2/popup/popup.js index 3cb30dc..a66e408 100644 --- a/extension-getting-started-part2/extension-getting-started-part2/popup/popup.js +++ b/extension-getting-started-part2/extension-getting-started-part2/popup/popup.js @@ -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 },