I am trying to add context menu in extension.
Sometimes it work , sometimes not can you tell me what is the issue & what will be the possible solution.
Context menu work properly when I inspect popup for the extension otherwise not.
here is the code :
chrome.contextMenus.removeAll();
var contexts=["selection"];
var context = contexts[0];
var title = "Phone Dial";
var id = chrome.contextMenus.create({"title": title, "contexts":[context]},function (){
var child1 = chrome.contextMenus.create({"title": "call", "contexts":[context], "parentId": id, "onclick": CallNumber});
});
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/c8e25933-368d-4915-a593-1c53baa1693d%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
it does not show any error on console.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/27bbd84b-e9fa-4ca8-9c4e-828ff5ee3bf5%40chromium.org.
"scripts": ["???.js"] }
yes,i am sure , its giving url as :and (all) option is selected for the errors also all the options are checked under Y option.
--Thank you,Dhiraj Rode
9665879483
Yes ,manifest.json have permission have "contextMenus".I have added the contextmenu.js file which i used to add context menu functionality in bg-page.html page & added bg-page.html page as :"background" : {"page": "bg-page.html"}also contextMenu.js is loaded successfully .