mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-29 20:37:01 +02:00
Make separators page-dependent as well
This commit is contained in:
@@ -40,6 +40,7 @@ chrome.contextMenus.create({
|
|||||||
chrome.contextMenus.create({
|
chrome.contextMenus.create({
|
||||||
id: "separator-1",
|
id: "separator-1",
|
||||||
type: "separator",
|
type: "separator",
|
||||||
|
documentUrlPatterns: ["*://developer.mozilla.org/*"],
|
||||||
contexts: ["all"]
|
contexts: ["all"]
|
||||||
}, onCreated);
|
}, onCreated);
|
||||||
|
|
||||||
@@ -64,6 +65,7 @@ chrome.contextMenus.create({
|
|||||||
chrome.contextMenus.create({
|
chrome.contextMenus.create({
|
||||||
id: "separator-2",
|
id: "separator-2",
|
||||||
type: "separator",
|
type: "separator",
|
||||||
|
documentUrlPatterns: ["*://developer.mozilla.org/*"],
|
||||||
contexts: ["all"]
|
contexts: ["all"]
|
||||||
}, onCreated);
|
}, onCreated);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user