jquery - Getting error while detect chrome extension installed or not using javascript -
here code,
var myextension = chrome.management.get( "my_extention_id" ); if (myextension.enabled) { // installed } else { ... }
source : http://developer.chrome.com/extensions/management.html#method-get have tried method. i'm getting following error: uncaught typeerror: cannot read property 'get' of undefined
if it's undefined you're missing management declaration in manifest:
"permissions": [ "management" ],
Comments
Post a Comment