Fixed contenteditable save
This commit is contained in:
parent
fc96fe861e
commit
b2f9754a19
@ -13,5 +13,5 @@ export function installExtension(arn: AnimeNotifier, button: HTMLElement) {
|
||||
|
||||
// Desktop app installation
|
||||
export function installApp() {
|
||||
alert("Open your browser menu > 'More tools' > 'Add to desktop' and enable 'Open as window'.")
|
||||
alert("Open your browser menu > 'Install Anime Notifier'.")
|
||||
}
|
@ -1019,8 +1019,7 @@ export default class AnimeNotifier {
|
||||
// Disallow Enter key in contenteditables and make it blur the element instead
|
||||
if(e.keyCode === 13) {
|
||||
if("blur" in activeElement) {
|
||||
let blur = activeElement["blur"] as Function
|
||||
blur()
|
||||
(activeElement["blur"] as Function)()
|
||||
}
|
||||
|
||||
return preventDefault()
|
||||
|
@ -1,7 +1,6 @@
|
||||
export function requestIdleCallback(func: Function) {
|
||||
if("requestIdleCallback" in window) {
|
||||
let requestIdleCallback = window["requestIdleCallback"] as Function
|
||||
requestIdleCallback(func)
|
||||
(window["requestIdleCallback"] as Function)(func)
|
||||
} else {
|
||||
func()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user