Opera 12 extension compatibility fix

User avatar
Ashus
Administrátor
Posts: 417
Joined: 07. 07. 2007 10:51
Location: Ostrava - Polanka nad Odrou
Contact:

Opera 12 extension compatibility fix

Postby Ashus » 29. 03. 2012 10:58

The console shows Unhandled DOMException: INVALID_STATE_ERR on running:

Code: Select all

opera.extension.onconnect = function(event){
 event.source.postMessage(...);
}; 
I tried a little debug with my own extensions using similar postMessage, the trick is to use opera.extension.broadcastMessage instead of event.source.postMessage . Replace it in the extension's background.js and it should work again.
Image
Coffee phreak!

Who is online

Users browsing this forum: No registered users and 1 guest

cron