Last active
September 3, 2020 08:26
-
-
Save ganeshjaiwal/1bff5a2382c38bbe646cfb44b7f2890f to your computer and use it in GitHub Desktop.
Background section in manifest with background script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Create background.js and add this code into it */ | |
chrome.runtime.onInstalled.addListener((details) => { | |
console.log('previousVersion', details.previousVersion) | |
}); | |
console.log('Event Page for Page Action'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add this to manifest file to use our backgroud script */ | |
"background": { | |
"scripts": ["scripts/background.js"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment