English 中文(简体)
我的延伸中的“未知错误”
原标题:"Unknown error" in my Chrome extension

我写信(或试图写上)是我的第一次 Chrome延,我无法指出我所看到的这一错误。 我的背景守则

<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <script>

    console.log( works? );

    chrome.tabs.executeScript(null, {code:"document.body.style.fontSize = 20"});

    console.log( print again );

    </script>
</body>

When I try to run this extension I get the error: Error during tabs.executeScript: Unknown error. extensions/extension process bindings.js:85

Does anyone have any idea what this could possibly be or how to fix it? I get no error when I do not include the line chrome.tabs.executeScript, and I get the error no matter what I write for the parameters of chrome.tabs.executeScript. I also get the error when I include chrome.tabs.executeScript inside a function that is called whenever the browserAction is clicked

感谢你们的帮助。

问题回答

当背景页数首次出现在<代码>chrome://extensions<>/code>时,你将代码注入选定的表格。 页: 1

你们为什么在浏览器的听众中仍然有错误,也许你们的推广网页还开了吗?





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签