repo.or.cz
/
link.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix logs not saving
[link.git]
/
www
/
js
/
router.js
blob
4a54a9073aed392c55dd5920e46aaf7cdc7cc26c
1
let
Route
= (
url
) => {
2
let
HTTP
=
new
XMLHttpRequest
()
3
HTTP
.
open
(
'GET'
,
url
)
4
HTTP
.
send
()
5
HTTP
.
onreadystatechange
=
error
=> {
6
document
.
querySelector
(
'html'
).
innerHTML
=(
HTTP
.
responseText
)
7
window
.
history
.
pushState
(
null
,
''
,
url
);
8
}
9
}