Fixed most of TypeScript errors for TS 3.1.2

This commit is contained in:
2018-10-10 17:42:23 +09:00
parent d1987e9c60
commit 1829c2cab9
6 changed files with 14 additions and 106 deletions

View File

@ -1019,7 +1019,8 @@ export default class AnimeNotifier {
// Disallow Enter key in contenteditables and make it blur the element instead
if(e.keyCode === 13) {
if("blur" in activeElement) {
activeElement["blur"]()
let blur = activeElement["blur"] as Function
blur()
}
return preventDefault()