manager.js not needed for now
This commit is contained in:
parent
09cb36b245
commit
11202ba79f
1 changed files with 0 additions and 23 deletions
|
@ -1,23 +0,0 @@
|
||||||
/* manager.js
|
|
||||||
Manage the running of the scripts.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* ```js
|
|
||||||
chrome.runtime.onInstalled.addListener(function() {
|
|
||||||
// Request permission for the website.
|
|
||||||
chrome.permissions.request({
|
|
||||||
origins: ["https://example.com"]
|
|
||||||
}, function(granted) {
|
|
||||||
// If permission was granted, attach the content script to the website.
|
|
||||||
if (granted) {
|
|
||||||
chrome.tabs.executeScript({
|
|
||||||
code: 'console.log("Hello from the content script!");'
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// Permission was not granted. Display an error message.
|
|
||||||
console.error("Error: Permission not granted.");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
```*/
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue