Disable elementId, not implemented and provokes validation warning
This commit is contained in:
parent
f01e53e0e3
commit
73a545e4ce
@ -156,7 +156,7 @@ browser.contextMenus.onClicked.addListener(function (info, tab) {
|
||||
browser.tabs.sendMessage(tab.id, {
|
||||
mark: label,
|
||||
url: info.linkUrl,
|
||||
elementId: info.targetElementId,
|
||||
// elementId: info.targetElementId,
|
||||
debug: overrides.debug
|
||||
}, null, response => {
|
||||
if (!response.identifier) return;
|
||||
|
@ -439,7 +439,7 @@ browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||
return;
|
||||
}
|
||||
message.contextPage = window.location.href;
|
||||
var target = message.elementId ? browser.menus.getTargetElement(message.elementId) : null;
|
||||
var target = null; // message.elementId ? browser.menus.getTargetElement(message.elementId) : null;
|
||||
|
||||
//console.log(message.url)
|
||||
var links = target ? [target] : [...document.getElementsByTagName('A')].filter(x => x.href == message.url)
|
||||
|
Loading…
Reference in New Issue
Block a user