From 46ffb330fc1b9cba28c7e629ed93492a2dbec537 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 4 Feb 2020 02:15:06 -0500 Subject: [PATCH] Fix invidious enabling error --- src/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 61ae38b1..e19e4ca9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -144,7 +144,8 @@ class Utils { id: id }); } - } else { + } else if (chrome.declarativeContent) { + // Only if we have permission chrome.declarativeContent.onPageChanged.removeRules(["invidious"]); }