From 04c37f7985948f5a5929238754458b6f64aa7de3 Mon Sep 17 00:00:00 2001 From: Stefan Van Damme Date: Thu, 4 Jun 2020 11:55:19 +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 6c09569ef04cef022fa250e43b6e756e2d0ac601..6ff09875c4cc2e600d9e651bfde9b29768571029 100755 GIT binary patch delta 35 qcmZo^U~Fk%+@K*SVqvVKU}$JitD{hDXkcidqhM}izS&0bgdPB=>j^mk delta 35 qcmZo^U~Fk%+@K*SVr;0RU}$V!tD{hDXkcifqhMxXu-QiNgdPB>4+%X0 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 38f6bb4..63d0006 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/",