Improved architecture
This commit is contained in:
15
scripts/AnimeNotifier.ts
Normal file
15
scripts/AnimeNotifier.ts
Normal 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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user