chrome.runtime.setUninstallUrl 似乎不起作用

roh*_*ohe 1 javascript google-chrome uninstallation google-chrome-extension

我试图让我的 chrome 扩展程序在卸载后访问某个 URL。显然chrome.runtime.setUninstallUrl是最好的(也是唯一的?)选择,但它似乎对我不起作用。它根本没有射击。

这是我使用的代码:

chrome.runtime.setUninstallURL('www.google.com');
Run Code Online (Sandbox Code Playgroud)

它与其他几个事件侦听器一起位于扩展程序的后台 JavaScript 文件中。我尝试将解压的扩展程序加载到 Chrome 中,然后将其删除,但卸载 URL 没有变化。

任何帮助,将不胜感激。

小智 5

URL 必须具有 http: 或 https: 方案。