Closed ghost closed 9 years ago
I am trying to send notification from content to background script and it work in all browsers exept firefox.
Firefox: 38.0.1 Kango: 1.7.6 Content.js kango.dispatchMessage('notification', 'example'); Main.js kango.addMessageListener('notification', function(event) ...
kango.dispatchMessage('notification', 'example');
kango.addMessageListener('notification', function(event) ...
Please send us your extension.
I have sent you extension with code.
It works fine, you just shouldn't use alert in background scripts because it is not available. We'll add it to documentation.
alert
I am trying to send notification from content to background script and it work in all browsers exept firefox.
Firefox: 38.0.1 Kango: 1.7.6 Content.js
kango.dispatchMessage('notification', 'example');
Main.jskango.addMessageListener('notification', function(event) ...