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

15
scripts/AnimeNotifier.ts Normal file
View File

@ -0,0 +1,15 @@
import { Application } from "./Application"
export class AnimeNotifier {
app: Application
constructor(app: Application) {
this.app = app
}
run() {
this.app.content = this.app.find("content")
this.app.loading = this.app.find("loading")
this.app.run()
}
}