From 4470714027be813398ff839e29b18a39b44d7970 Mon Sep 17 00:00:00 2001 From: deetz99 Date: Mon, 13 Jan 2025 10:53:54 -0800 Subject: [PATCH] add return if missing config --- strr-base-web/app/middleware/enable-sbc-web-messenger.global.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/strr-base-web/app/middleware/enable-sbc-web-messenger.global.ts b/strr-base-web/app/middleware/enable-sbc-web-messenger.global.ts index 88a05367..8cec6182 100644 --- a/strr-base-web/app/middleware/enable-sbc-web-messenger.global.ts +++ b/strr-base-web/app/middleware/enable-sbc-web-messenger.global.ts @@ -13,6 +13,7 @@ export default defineNuxtRouteMiddleware(async (to) => { const initWebMsg = () => { if (!genesysUrl || !environmentKey || !deploymentKey) { console.warn('Missing Sbc Web Messenger config, aborting setup.') + return } window._genesysJs = 'Genesys'