gpt4 book ai didi

javascript - 将用户引导至卸载 Chrome 打包应用程序的链接

转载 作者:行者123 更新时间:2023-12-03 05:41:28 31 4
gpt4 key购买 nike

我正在开发一个 Chrome 打包应用程序,并尝试设置卸载该应用程序的 url。到目前为止,我在应用程序的后台 Javascript(或主要)上有这一行:

chrome.runtime.setUninstallURL(goo.gl/forms/qo8OF2w9pLLyHloa2)

但是卸载后什么也不做?任何帮助都会受到喜爱!这是我的脚本,也是完整的。

chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('popup.html', {
'outerBounds': {
'width': 640,
'height': 692
},
"resizable": false,
"frame": {
color: "#ffffff"
},
});
});
chrome.runtime.onUpdateAvailable.addListener(function(details) {
console.log("updating to version " + details.version);
chrome.runtime.reload();
});

chrome.runtime.requestUpdateCheck(function(status) {
if (status == "update_available") {
chrome.runtime.reload();
} else if (status == "no_update") {
console.log("no update found");
}
});

chrome.runtime.setUninstallURL(goo.gl/forms/qo8OF2w9pLLyHloa2)

这也是我的 list

{
"name": "Meme Music Board",
"short_name": "Meme Music Board",
"description": "All of your meme songs in one song board. 100+ Songs! You deserve it ;)",
"version":"2.6.4",
"manifest_version": 2,
"author": "Banana Man Development",
"offline_enabled": true,
"app": {
"background": {
"scripts": ["background.js"]
}
},
"icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }
}

最佳答案

documentation它指出

This URL must have an http: or https: scheme.

尝试将 http:// 添加到您的网址前面,您应该就可以开始了。

还要确保将网址放在单引号中,这是该方法所需要的。

关于javascript - 将用户引导至卸载 Chrome 打包应用程序的链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40516525/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com