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"         ], 

source


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -