Added null checks

This commit is contained in:
2019-04-19 22:50:52 +09:00
parent 707233a422
commit d16197340d
8 changed files with 31 additions and 18 deletions

View File

@ -257,7 +257,7 @@ export default class Application {
}
scrollToTop() {
let parent : HTMLElement | null = this.content
let parent: any = this.content
Diff.mutations.queue(() => {
while(parent = parent.parentElement) {