Firefox-add-on js issue











up vote
0
down vote

favorite












I am coding a Web Extension. It opens up as a popup when clicked that user can interact with. Popup displays HTML and CSS correctly, but fails to execute JS.



Here the code of my manifest.json file:

{
"manifest_version": 2,
"name": "To-Do List",
"description": "Keep track of your tasks easily.",
"version": "1.0.0",
"icons": {"128":"icon.png"},
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": ["*://*/"],
"js": ["app.js"]
}

],
"permissions": ["activeTab"]
}



All the files are in same directory!










share|improve this question







New contributor




Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to SO, Sanjeev. Can you open your dev console (F12) and check the debugger tab. Does your script appear in that list?
    – Andy
    Nov 10 at 15:19












  • No, I cannot see it there! It says 'no sources'.
    – Sanjeev Sharma
    Nov 10 at 16:34















up vote
0
down vote

favorite












I am coding a Web Extension. It opens up as a popup when clicked that user can interact with. Popup displays HTML and CSS correctly, but fails to execute JS.



Here the code of my manifest.json file:

{
"manifest_version": 2,
"name": "To-Do List",
"description": "Keep track of your tasks easily.",
"version": "1.0.0",
"icons": {"128":"icon.png"},
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": ["*://*/"],
"js": ["app.js"]
}

],
"permissions": ["activeTab"]
}



All the files are in same directory!










share|improve this question







New contributor




Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to SO, Sanjeev. Can you open your dev console (F12) and check the debugger tab. Does your script appear in that list?
    – Andy
    Nov 10 at 15:19












  • No, I cannot see it there! It says 'no sources'.
    – Sanjeev Sharma
    Nov 10 at 16:34













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am coding a Web Extension. It opens up as a popup when clicked that user can interact with. Popup displays HTML and CSS correctly, but fails to execute JS.



Here the code of my manifest.json file:

{
"manifest_version": 2,
"name": "To-Do List",
"description": "Keep track of your tasks easily.",
"version": "1.0.0",
"icons": {"128":"icon.png"},
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": ["*://*/"],
"js": ["app.js"]
}

],
"permissions": ["activeTab"]
}



All the files are in same directory!










share|improve this question







New contributor




Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am coding a Web Extension. It opens up as a popup when clicked that user can interact with. Popup displays HTML and CSS correctly, but fails to execute JS.



Here the code of my manifest.json file:

{
"manifest_version": 2,
"name": "To-Do List",
"description": "Keep track of your tasks easily.",
"version": "1.0.0",
"icons": {"128":"icon.png"},
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": ["*://*/"],
"js": ["app.js"]
}

],
"permissions": ["activeTab"]
}



All the files are in same directory!







javascript firefox-addon






share|improve this question







New contributor




Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 10 at 15:04









Sanjeev Sharma

1




1




New contributor




Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Sanjeev Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Welcome to SO, Sanjeev. Can you open your dev console (F12) and check the debugger tab. Does your script appear in that list?
    – Andy
    Nov 10 at 15:19












  • No, I cannot see it there! It says 'no sources'.
    – Sanjeev Sharma
    Nov 10 at 16:34


















  • Welcome to SO, Sanjeev. Can you open your dev console (F12) and check the debugger tab. Does your script appear in that list?
    – Andy
    Nov 10 at 15:19












  • No, I cannot see it there! It says 'no sources'.
    – Sanjeev Sharma
    Nov 10 at 16:34
















Welcome to SO, Sanjeev. Can you open your dev console (F12) and check the debugger tab. Does your script appear in that list?
– Andy
Nov 10 at 15:19






Welcome to SO, Sanjeev. Can you open your dev console (F12) and check the debugger tab. Does your script appear in that list?
– Andy
Nov 10 at 15:19














No, I cannot see it there! It says 'no sources'.
– Sanjeev Sharma
Nov 10 at 16:34




No, I cannot see it there! It says 'no sources'.
– Sanjeev Sharma
Nov 10 at 16:34

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Sanjeev Sharma is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240231%2ffirefox-add-on-js-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Sanjeev Sharma is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Sanjeev Sharma is a new contributor. Be nice, and check out our Code of Conduct.













Sanjeev Sharma is a new contributor. Be nice, and check out our Code of Conduct.












Sanjeev Sharma is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240231%2ffirefox-add-on-js-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues