content-security-policy

The Chrome extension popup is not working, click events are not handled

不打扰是莪最后的温柔 提交于 2019-11-25 22:33:39
问题 I have created a JavaScript variable and when I click on the button it should increment by 1, but its not happening. Here\'s manifest.json . { \"name\":\"Facebook\", \"version\":\"1.0\", \"description\":\"My Facebook Profile\", \"manifest_version\":2, \"browser_action\":{ \"default_icon\":\"google-plus-red-128.png\", \"default_popup\":\"hello.html\" } } Here is the code for the html page <!DOCTYPE html> <html> <head> <script> var a=0; function count() { a++; document.getElementById(\"demo\")