File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
functional-samples/tutorial.quick-api-reference Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 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/*" ],
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ console.log('sw-tips.js');
22
33// Fetch tip & save in storage
44const 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 ] } ) ;
You can’t perform that action at this time.
0 commit comments