问题描述
我正在尝试将react js用于浏览器扩展应用程序。到目前为止,我已经设法显示了扩展名。
但是问题是弹出窗口(index.html)显示黑屏,中间写有'React',底部写有徽标。
弹出窗口也很薄。
这是index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<Meta charset="UTF-8">
<Meta name="viewport" content="width=device-width,initial-scale=1.0">
<Meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div id='root'>
</div>
<img src="logo192.png" alt="hoot1" height="50" width="40"/>
</body>
<script src="./dist/bundle.js"></script>
</html>
此外,这是manifest.json:
{
"manifest_version": 2,"name": "Hoot!","author": "AtlanTen","version": "1.0.1","description": "Replace new tab screen with GitHub trending projects.","icons": {
"16": "logo192.png","48": "logo192.png","128": "logo192.png"
},"browser_action": {
"default_popup": "index.html","default_title": "Hoot!"
},"permissions": ["storage"]
}
这里有什么建议吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)