There is a content script defined in manifest.json. The content script is doing a simple task. It adds a iframe into page and trying to open a local HTML file into it.
The problem is:
ifrm.setAttribute("src", "http://www.xyz.com/"); //working correctly.
BUT
ifrm.setAttribute("src", chrome.extension.getURL("view/abc.html")); //Not working
The iframe is not opening a local HTML file .
Any suggestion...
您需要在web_accessible_resources
设置文件,该文件区分大小写。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.