Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.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
Google chrome 网络可访问资源已停止识别我的图像_Google Chrome_Google Chrome Extension_Resources_Manifest - Fatal编程技术网

Google chrome 网络可访问资源已停止识别我的图像

Google chrome 网络可访问资源已停止识别我的图像,google-chrome,google-chrome-extension,resources,manifest,Google Chrome,Google Chrome Extension,Resources,Manifest,我得到这个错误: 拒绝负载 铬-extension://boelmimalaoomchodajlpmibbopknpoh/images/Alert.png/. 资源必须列在web\u可访问\u资源清单键中 以便由扩展以外的页面加载 即使在我的清单文件中,我有: "web_accessible_resources": [ "images/Alert.png" ] 半小时前它还可以正常工作,我没有更改清单文件中的任何内容,也没有更改图像的存储位置,现在它已经停止工作了 有什么想法吗?您是否正确

我得到这个错误:

拒绝负载 铬-extension://boelmimalaoomchodajlpmibbopknpoh/images/Alert.png/. 资源必须列在web\u可访问\u资源清单键中 以便由扩展以外的页面加载

即使在我的清单文件中,我有:

"web_accessible_resources": [
  "images/Alert.png"
]
半小时前它还可以正常工作,我没有更改清单文件中的任何内容,也没有更改图像的存储位置,现在它已经停止工作了


有什么想法吗?

您是否正确使用css或JS中的图像?就像这个:@gui47
var imgSrc=chrome.runtime.getURL(“images/Alert.png”)
JS获取图像源代码,就像我说的,这在以前是有效的,这很奇怪。你试过使用
var imgSrc=chrome.extension.getURL(“images/Alert.png”)
吗?@gui47刚刚试过-完全相同的情况发生了,但不起作用。如何将
/
添加到图像URL中。确保HTML标记不奇怪。