We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab9460e commit 370685aCopy full SHA for 370685a
functional-samples/sample.optional_permissions/newtab.js
@@ -53,7 +53,7 @@ chrome.permissions.contains({ permissions: ['topSites'] }).then((result) => {
53
// The extension doesn't have the permissions.
54
const button = document.createElement('button');
55
button.innerText = 'Allow Extension to Access Top Sites';
56
- button.addEventListener('click', (event) => {
+ button.addEventListener('click', () => {
57
chrome.permissions.request(newPerms).then((granted) => {
58
if (granted) {
59
console.log('granted');
0 commit comments