Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. но без функции работает, с чем это связано?
{
"manifest_version": 2,
"name": "Getting started example",
"description": "This extension shows a Google Image search result for the current page",
"version": "1.0",
"browser_action": {
"default_icon": "icons/icon.png",
"default_popup": "popup.html",
"default_title": "Click here!",
"style_css" : "style.css",
"javascript" : "popup.js"
},
"permissions": [
"activeTab",
"https://ajax.googleapis.com/"
]
}
<html>
<head>
<title>Getting Started Extension's Popup</title>
<link rel="stylesheet" href="style.css">
<script src="popup.js"></script>
</head>
<body>
<div class="Boss">
<p>Welcome</p>
<input type="button" class="input" onclick="myFunction()" value="Click Here">
</div>
</body>
</html>
function myFunction() {
console.log("lololo");
return;
};