• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Opera 12 extension compatibility fix
#1
The console shows Unhandled DOMException: INVALID_STATE_ERR on running:
Code:
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: kavove-zrnka-lajna.jpg]
Coffee phreak!
  Reply




Users browsing this thread: 1 Guest(s)