22 lines
446 B
TypeScript
Raw Normal View History

2017-06-19 14:20:46 +00:00
import { aero as app } from "./Aero/Aero"
2017-06-19 01:59:59 +00:00
2017-06-19 14:20:46 +00:00
class AnimeNotifier {
constructor() {
app.content = app.find("content")
app.loading = app.find("loading")
app.run()
}
}
document.onreadystatechange = function() {
if(document.readyState === "interactive") {
let arn = new AnimeNotifier()
}
}
window.onpopstate = e => {
if(e.state)
app.load(e.state, false)
else if(app.currentURL !== app.originalURL)
app.load(app.originalURL, false)
}