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
|
// Desktop app installation
|
||||||
export function installApp() {
|
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
|
// Disallow Enter key in contenteditables and make it blur the element instead
|
||||||
if(e.keyCode === 13) {
|
if(e.keyCode === 13) {
|
||||||
if("blur" in activeElement) {
|
if("blur" in activeElement) {
|
||||||
let blur = activeElement["blur"] as Function
|
(activeElement["blur"] as Function)()
|
||||||
blur()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return preventDefault()
|
return preventDefault()
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
export function requestIdleCallback(func: Function) {
|
export function requestIdleCallback(func: Function) {
|
||||||
if("requestIdleCallback" in window) {
|
if("requestIdleCallback" in window) {
|
||||||
let requestIdleCallback = window["requestIdleCallback"] as Function
|
(window["requestIdleCallback"] as Function)(func)
|
||||||
requestIdleCallback(func)
|
|
||||||
} else {
|
} else {
|
||||||
func()
|
func()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user