Skip to content

Commit

Permalink
route dispatch bug fix
Browse files Browse the repository at this point in the history
sub
  • Loading branch information
Weedshaker committed Feb 26, 2024
1 parent 388fbda commit ec4449d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/es/Environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ self.Environment = {
isTestingEnv: location.hostname === 'localhost',
language: currentScriptUrl.searchParams.get('language') || document.documentElement.getAttribute('lang') || 'en',
stage: currentScriptUrl.searchParams.get('stage') || document.documentElement.getAttribute('stage') || 'alpha',
version: currentScriptUrl.searchParams.get('version') || document.documentElement.getAttribute('version') || '3.0.21', // https://semver.org/
version: currentScriptUrl.searchParams.get('version') || document.documentElement.getAttribute('version') || '3.0.22', // https://semver.org/
/**
* Get custom mobile breakpoint
* @param {{constructor?: string, tagName?: string, namespace?: string}} organism
Expand All @@ -21,4 +21,4 @@ self.Environment = {
}
}
}
document.body.addEventListener('route', async event => (self.Environment.activeRoute = (await event.detail.info).route.component))
document.body.addEventListener('pre-route', event => (self.Environment.activeRoute = event.detail.component))
2 changes: 1 addition & 1 deletion src/es/chat
2 changes: 1 addition & 1 deletion src/es/event-driven-web-components-router
2 changes: 1 addition & 1 deletion src/es/event-driven-web-components-yjs

0 comments on commit ec4449d

Please sign in to comment.