【发布时间】:2020-10-18 02:31:30
【问题描述】:
我构建了一个简单的 chrome 扩展。它之前正确加载,但现在 Chrome 无法打开它。我可能错误地命名了一个文件。
html:
<!DOCTYPE html>
<html>
<head>
<title>Kalki </title>
</head>
<body>
<!-- LINK THROUGH TO THE CODEPEN SITE -->
<iframe src="https://codepen.io/Teeke/live/yLezNrE" width="1000" height="1000" frameborder="0" id="frame1" name="frame1"></iframe>
</body>
</html>
我已经验证了清单文件中的 JSON 并且它通过了:
{
"manifest_version": 2,
"version": "1.0",
"name": "Kalki Chrome",
"description": "Window to the world 2",
"icons":
{
"16": "images/kalki16.png",
"48": "images/kalki48.png",
"128": "images/kalki128.png"
},
"browser_action":
{
"default_icon": "images/kalki48.png",
"default_popup": "kalki.html"
}
}
【问题讨论】:
-
代码看起来不错,所以问题出在其他地方。
标签: html google-chrome google-chrome-extension