From d946fc61957a4995a2ab601364f655a1d38fdd41 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Fri, 6 Oct 2023 11:23:50 +0800 Subject: [PATCH] [Basilisk] pdfjs: Services.policies is not available in UXP, comment it out --- application/basilisk/extensions/pdfjs/content/PdfJs.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/basilisk/extensions/pdfjs/content/PdfJs.jsm b/application/basilisk/extensions/pdfjs/content/PdfJs.jsm index 7d757ea930..646f4b6351 100644 --- a/application/basilisk/extensions/pdfjs/content/PdfJs.jsm +++ b/application/basilisk/extensions/pdfjs/content/PdfJs.jsm @@ -340,9 +340,9 @@ var PdfJs = { * @return {boolean} Whether or not it's enabled. */ get enabled() { - if (!Services.policies.isAllowed("PDF.js")) { + /*if (!Services.policies.isAllowed("PDF.js")) { return false; - } + }*/ if (!Services.prefs.getBoolPref(PREF_ENABLED_CACHE_INITIALIZED, false)) { // If we just updated, and the cache hasn't been initialized, then we