Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
smtdfc committed Jan 3, 2024
1 parent 480ba29 commit 2677025
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/component/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function processAttributes(node, root, context = {}) {


export function process(contents, root, context) {
root.textContent = ""
for (let i = 0; i < contents.childNodes.length; i++) {
let node = contents.childNodes[i]
if (node.nodeType === Node.ELEMENT_NODE) {
Expand Down
3 changes: 3 additions & 0 deletions src/modules/router/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export class TurtleRouterModule {
this.app = app
this.matched = null
app.router = this

}

static init(app, configs) {
Expand Down Expand Up @@ -76,6 +77,8 @@ export class TurtleRouterModule {
let path = window.location.hash.slice(1)
ctx.matches(path)
})

this.matches("/")
}

}

0 comments on commit 2677025

Please sign in to comment.