Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'onMessage' of undefined #31

Open
wareczek opened this issue Aug 7, 2013 · 1 comment
Open

Cannot read property 'onMessage' of undefined #31

wareczek opened this issue Aug 7, 2013 · 1 comment

Comments

@wareczek
Copy link

wareczek commented Aug 7, 2013

chrome.extension is not available: 'extension' is not allowed for specified context type content script,  extension page, web page, etc.). [VM] binding (217):424
Binding.generate [VM] binding (217):424
(anonymous function) extension:114
_listenForLogMessages chrome-extension://noaneddfkdjfnfdakjjmocngnfkfehhd/log.js:208
_init chrome-extension://noaneddfkdjfnfdakjjmocngnfkfehhd/log.js:231
(anonymous function) chrome-extension://noaneddfkdjfnfdakjjmocngnfkfehhd/log.js:255
(anonymous function) chrome-extension://noaneddfkdjfnfdakjjmocngnfkfehhd/log.js:256

Uncaught TypeError: Cannot read property 'onMessage' of undefined chrome-extension://noaneddfkdjfnfdakjjmocngnfkfehhd/log.js:208

Ubuntu 13.04, Chromium 30.0.1581.2

Issue same as there: http://stackoverflow.com/questions/12936953/chrome-extension-onmessage-addlistener-cannot-read-property-onmessage-of-undef

@jbarbede
Copy link

Same problem on Chromium 29.0.1547.65 after upgrading to ubuntu 13.10.

I replaced all "chrome.extension.sendMessage" and "chrome.extension.onMessage" references respectively by "chrome.runtime.sendMessage" and "chrome.runtime.onMessage" in log.js and chromelogger.js to test and now it works.

The Chrome API has probably changed I guess: http://developer.chrome.com/extensions/extension.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants