google chrome - No permissions for notifications -
the problem when run extension securityerror dom 18
when trying make notification.
so how manifest file looks like:
{ "name": "no", "manifest_version": 2, "version": "1", "content_scripts": [ { "js": ["js.js"] } ], "permissions": [ "notifications", "tabs" ], "web_accessible_resources": [ "48.png" ] }
this notification:
var notification = webkitnotifications.createnotification( '/favicon.ico', 'item added cart!', // notification title 'item ............ has been added cart.' // notification body text );
the notifications
permission not propagate content script.
add event page extension, , send message open notification event page.
Comments
Post a Comment