Skip to content

Commit 517cf10

Browse files
authored
Move sw-tips tutorial to use chrome.dev (#1505)
Moves from the Glitch URL to chrome.dev, and removes the host permissions as we now set CORS headers.
1 parent b55612a commit 517cf10

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

functional-samples/tutorial.quick-api-reference/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"keyword": "api"
1717
},
1818
"permissions": ["alarms", "storage"],
19-
"host_permissions": ["https://extension-tips.glitch.me/*"],
2019
"content_scripts": [
2120
{
2221
"matches": ["https://developer.chrome.com/docs/extensions/reference/*"],

functional-samples/tutorial.quick-api-reference/sw-tips.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ console.log('sw-tips.js');
22

33
// Fetch tip & save in storage
44
const updateTip = async () => {
5-
const response = await fetch('https://extension-tips.glitch.me/tips.json');
5+
const response = await fetch('https://chrome.dev/f/extension_tips/');
66
const tips = await response.json();
77
const randomIndex = Math.floor(Math.random() * tips.length);
88
return chrome.storage.local.set({ tip: tips[randomIndex] });

0 commit comments

Comments
 (0)