From d188f5e184e29568ca7600a059cf8d27be1da7e6 Mon Sep 17 00:00:00 2001 From: Will Bamberg Date: Mon, 23 May 2016 15:50:55 -0700 Subject: [PATCH] Make separators page-dependent as well --- context-menu-demo/background.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/context-menu-demo/background.js b/context-menu-demo/background.js index b144313..b0b0d72 100644 --- a/context-menu-demo/background.js +++ b/context-menu-demo/background.js @@ -40,6 +40,7 @@ chrome.contextMenus.create({ chrome.contextMenus.create({ id: "separator-1", type: "separator", + documentUrlPatterns: ["*://developer.mozilla.org/*"], contexts: ["all"] }, onCreated); @@ -64,6 +65,7 @@ chrome.contextMenus.create({ chrome.contextMenus.create({ id: "separator-2", type: "separator", + documentUrlPatterns: ["*://developer.mozilla.org/*"], contexts: ["all"] }, onCreated);