From cf662b5f016d147bcd7d4511b3e3d3050f0ace0e Mon Sep 17 00:00:00 2001 From: Francis McKenzie Date: Thu, 19 May 2022 11:15:51 +0200 Subject: [PATCH] Wildcard subdomains - fix right-click context menu displaying incorrect "Always open in" status --- src/js/background/assignManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/background/assignManager.js b/src/js/background/assignManager.js index d8ff37c4..308ef881 100644 --- a/src/js/background/assignManager.js +++ b/src/js/background/assignManager.js @@ -734,7 +734,8 @@ window.assignManager = { // Ensure we have a cookieStore to assign to if (cookieStore && this.isTabPermittedAssign(tab)) { - return this.storageArea.get(tab.url); + const siteMatchResult = await this.storageArea.getOrWildcardMatch(tab.url); + return siteMatchResult && siteMatchResult.siteSettings; } return false; },