javascript - chrome.runtime.setUninstallUrl doesn't seem to be working -



javascript - chrome.runtime.setUninstallUrl doesn't seem to be working -

i'm trying create chrome extension visit url when uninstalled. apparently chrome.runtime.setuninstallurl best (and only?) option, doesn't seem work me. it's not firing @ all.

this code use:

chrome.runtime.setuninstallurl('www.google.com');

it's located in extension's background javascript file couple of other event listeners. tried loading unpacked extension chrome , removing it, uninstall url not budge.

any help appreciated.

the documentation displays warning:

dev channel only.

this means api function still considered experimental , not enabled in stable/beta builds of chrome.

here's corresponding issue in chrome bug tracker. seems feature should nail stable (ready since july) got bit lost on way. consider starring issue raise priority.

until fixed, won't work in normal chrome versions. should have seen error function undefined if looked in background console, way.

you can safely include in code conditionally, work on builds it's enabled:

if(chrome.runtime.setuninstallurl) { chrome.runtime.setuninstallurl('http://example.com/'); } else { // not yet enabled }

javascript google-chrome google-chrome-extension uninstall

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -