Removed contextmenu on videos
This commit is contained in:
parent
d8714f92a2
commit
fa3bba2acf
@ -647,6 +647,9 @@ export default class AnimeNotifier {
|
||||
video["became visible"] = () => {
|
||||
video.pause()
|
||||
|
||||
// Prevent context menu
|
||||
video.addEventListener("contextmenu", e => e.preventDefault())
|
||||
|
||||
for(let child of video.children) {
|
||||
let div = child as HTMLDivElement
|
||||
let source = document.createElement("source")
|
||||
|
Loading…
Reference in New Issue
Block a user