KangoExtensions/kango

dispatchMessage - doesn't work in firefox

Closed this issue · 3 comments

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) ...

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.