Removed contextmenu on videos

This commit is contained in:
Eduard Urbach 2018-04-15 11:26:05 +02:00
parent d8714f92a2
commit fa3bba2acf

View File

@ -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")