2017-06-19 16:49:24 +02:00
|
|
|
import { Application } from "./Application"
|
|
|
|
import { AnimeNotifier } from "./AnimeNotifier"
|
2017-06-19 03:59:59 +02:00
|
|
|
|
2017-06-19 16:49:24 +02:00
|
|
|
let app = new Application()
|
|
|
|
let arn = new AnimeNotifier(app)
|
2017-06-19 16:20:46 +02:00
|
|
|
|
2017-06-19 17:45:27 +02:00
|
|
|
document.addEventListener("readystatechange", arn.onReadyStateChange.bind(arn))
|
2017-06-21 18:44:20 +02:00
|
|
|
document.addEventListener("DOMContentLoaded", arn.onContentLoaded.bind(arn))
|
2017-06-20 21:37:52 +02:00
|
|
|
document.addEventListener("keydown", arn.onKeyDown.bind(arn), false)
|
2017-06-21 18:44:20 +02:00
|
|
|
window.addEventListener("popstate", arn.onPopState.bind(arn))
|