From ca5e27d75927335666c7597ab1076bb5f307e48b Mon Sep 17 00:00:00 2001 From: wanhose Date: Thu, 4 Nov 2021 14:08:26 +0100 Subject: [PATCH] fix(scripts): show report option in all contexts --- scripts/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/background.js b/scripts/background.js index ac130f8..947fc9e 100644 --- a/scripts/background.js +++ b/scripts/background.js @@ -225,6 +225,7 @@ chrome.runtime.onMessage.addListener((request, sender, callback) => { */ chrome.contextMenus.create({ + contexts: ["all"], id: contextMenuId, title: "Report site...", }); @@ -236,7 +237,7 @@ chrome.contextMenus.create({ chrome.contextMenus.onClicked.addListener((info, tab) => { if (info.menuItemId !== contextMenuId) return; - fetch("https://cdm-report-service.herokuapp.com/rest/v1/report", { + fetch("https://cdm-report-service.herokuapp.com/rest/v1/report/", { body: JSON.stringify({ text: tab.url, to: "wanhose.development@gmail.com",