Improved architecture

This commit is contained in:
2017-06-19 16:49:24 +02:00
parent be11e469b1
commit 10edd306f1
3 changed files with 25 additions and 14 deletions

View File

@ -1,16 +1,12 @@
import { aero as app } from "./Aero/Aero"
import { Application } from "./Application"
import { AnimeNotifier } from "./AnimeNotifier"
class AnimeNotifier {
constructor() {
app.content = app.find("content")
app.loading = app.find("loading")
app.run()
}
}
let app = new Application()
let arn = new AnimeNotifier(app)
document.onreadystatechange = function() {
if(document.readyState === "interactive") {
let arn = new AnimeNotifier()
arn.run()
}
}