From f2c03d4170b8db857d78c0d5f4f1686f76d5fb8e Mon Sep 17 00:00:00 2001 From: Stefan Van Damme Date: Thu, 4 Jun 2020 11:55:25 +0200 Subject: [PATCH] v4.1.8.0 --- .DS_Store | Bin 16388 -> 16388 bytes js/content.js | 2 ++ manifest.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.DS_Store b/.DS_Store index d8acfe83b9ea8a82413d745a7264ad503640f9d1..3ea6b5d86844565d44001ab5e8b2f7c3af31b4cd 100755 GIT binary patch delta 35 qcmZo^U~Fk%+;Bi##KKrd!O+m4R!5=Q(7@0@N5S04eDf7?0}TMWX$jW= delta 26 hcmZo^U~Fk%+;Bjg-Plk^!O+-z@>V9N&72ay)d6x(2xb5P diff --git a/js/content.js b/js/content.js index b5f4677..88af100 100755 --- a/js/content.js +++ b/js/content.js @@ -3719,6 +3719,7 @@ function nightfunction(){ var x = document.getElementsByTagName("video")[0]; var nightcurrentvideoplaying = false; + if(x){ x.addEventListener("playing", function(e){ nightcurrentvideoplaying = true; if(document.fullscreenElement){gohideswitchonplay();} @@ -3727,6 +3728,7 @@ function nightfunction(){ nightcurrentvideoplaying = false; goshowswitchonpause(); }); + } document.addEventListener("fullscreenchange", function(event){ if(document.fullscreenElement){ diff --git a/manifest.json b/manifest.json index f9d57e3..2b793ae 100755 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "__MSG_name__", "short_name": "Turn Off the Lights", - "version": "4.1.7.0", + "version": "4.1.8.0", "description": "__MSG_description__", "author": "Stefan vd", "homepage_url": "https://www.turnoffthelights.com/support/",