Skip to content

Commit

Permalink
update Router.js
Browse files Browse the repository at this point in the history
  • Loading branch information
smtdfc committed Nov 24, 2023
1 parent 9a5c420 commit 8267b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function resolveRoute(router, url = new URL("/", window.load)) {
if (routeConfig.title) document.title = routeConfig.title
if (component) {
if(router.currentComponent){
window.customElements.define(component,class extends HTMLElement{},{})
window.customElements.upgrade(component,class extends HTMLElement{},{})
}
if (!router.alwayLoadContent) {
if (!window.TURTLE.TURTLE_COMPONENTS[component.toUpperCase()]) {
Expand Down

0 comments on commit 8267b8b

Please sign in to comment.