Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/464.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未选中的runtime.lastError:无法分析颜色规范_Javascript_Google Chrome Extension - Fatal编程技术网

Javascript 未选中的runtime.lastError:无法分析颜色规范

Javascript 未选中的runtime.lastError:无法分析颜色规范,javascript,google-chrome-extension,Javascript,Google Chrome Extension,在我的chrome扩展中,我有一个错误: 未选中runtime.lastError:无法选择颜色规范 解析 这表示popup.html:1->行中有错误。这是关于什么以及如何删除它 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="https:

在我的chrome扩展中,我有一个错误:

未选中runtime.lastError:无法选择颜色规范 解析

这表示
popup.html:1
->
行中有错误。这是关于什么以及如何删除它

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <link
    rel="stylesheet"
    href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
    integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
    crossorigin="anonymous"
  />
</head>
<body>

  <div id="app-container">
  </div>
<script type="text/javascript" src="popup.bundle.js"></script></body>
</html>


如果有更多错误信息,是否可以包括错误信息引用的更大的代码片段以及错误信息的全文?@thmsdnr updated。全文。我添加了更多的代码错误消息说您向某个chrome.*API函数传递了无效的颜色。可能是chrome.browserAction.setBadgeBackgroundColor@wOxxOm我有:
chrome.browserAction.set-BadgeBackgroundColor({color:'})
要关闭徽章颜色,请使用透明颜色,例如
“#0000”