From 234cc08d49f02bf93a39297fea855ece6b320c22 Mon Sep 17 00:00:00 2001 From: dadandadan <73831849+dadanda@users.noreply.github.com> Date: Tue, 24 Oct 2023 21:07:29 +0800 Subject: [PATCH] Update settings.js Fix error. (chrome.extension.getURL is being deprecated in manifest v3) --- js/settings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/settings.js b/js/settings.js index 127c9ed..a473cb2 100644 --- a/js/settings.js +++ b/js/settings.js @@ -70,13 +70,13 @@ function themeClassName(theme) { function themeIconURL(theme) { if (theme == CHARCOAL_MODE) { - return chrome.extension.getURL("assets/charcoal-messenger.svg"); + return ("assets/charcoal-messenger.svg"); } else if (theme == MIDNIGHT_MODE) { - return chrome.extension.getURL("assets/midnight-messenger.svg"); + return ("assets/midnight-messenger.svg"); } else if (theme == DEEPBLUE_MODE) { - return chrome.extension.getURL("assets/deepblue-messenger.svg"); + return ("assets/deepblue-messenger.svg"); } else { - return chrome.extension.getURL("assets/facebook-messenger.svg"); + return ("assets/facebook-messenger.svg"); } }