From 077ddaeb41ee0a44b0b8e9f87d645ac7bc7f67c2 Mon Sep 17 00:00:00 2001 From: rofe Date: Tue, 19 Oct 2021 17:06:56 +0200 Subject: [PATCH] fix: non hlx3 support --- src/extension/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extension/utils.js b/src/extension/utils.js index 5208117..1547cab 100644 --- a/src/extension/utils.js +++ b/src/extension/utils.js @@ -95,11 +95,12 @@ export function getConfigMatches(configs, tabUrl) { ref, host, mountpoints, + hlx3, } = config; const match = checkHost === 'localhost:3000' // local development || (host && checkHost === host) // production host || checkHost === `${ref}--${repo}--${owner}.hlx.live` // outer CDN - || checkHost === `${ref}--${repo}--${owner}.hlx3.page` // inner CDN + || checkHost === `${ref}--${repo}--${owner}.hlx${hlx3 ? '3' : ''}.page` // inner CDN || mountpoints // editor .map((mp) => { const mpUrl = new URL(mp);