Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
Browse files Browse the repository at this point in the history
deetz99 committed Jan 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 75c7c82 commit db49829
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions strr-base-web/app/plugins/sbc-web-messenger.client.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ export default defineNuxtPlugin(async () => {
// const { ldClient, getStoredFlag } = useConnectLaunchdarklyStore()
// await ldClient?.waitUntilReady()
const rtc = useRuntimeConfig().public
// const msgConfig = useAppConfig().strrBaseLayer.sbcWebMsg
const msgConfig = useAppConfig().strrBaseLayer.sbcWebMsg

// const ldFlag = getStoredFlag('enable-sbc-web-messenger')

@@ -72,13 +72,11 @@ export default defineNuxtPlugin(async () => {

const router = useRouter()

const allowedRoutes = useAppConfig().strrBaseLayer.sbcWebMsg.allowedRoutes

const isRouteAllowed = (path: string): boolean => {
if (allowedRoutes === undefined) {
if (msgConfig.allowedRoutes === undefined) {
return true
}
return allowedRoutes.some(route => path.includes(route))
return msgConfig.allowedRoutes.some(route => path.includes(route))
}

router.beforeEach((to, from, next) => {

Check failure on line 82 in strr-base-web/app/plugins/sbc-web-messenger.client.ts

GitHub Actions / strr-base-web-ci / linting-pnpm (20, 9)

'from' is defined but never used. Allowed unused args must match /^_/u

0 comments on commit db49829

Please sign in to comment.