summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authormeow <woem>2022-04-20 11:38:24 +0300
committermeow <woem>2022-04-25 10:12:16 +0300
commiteb7e48b05999b29670a2de80e6f53bd8b4fd8d15 (patch)
tree67caa71a54d013b96975760bf3d9813bfba5351c /assets
parent2ea986326d1a64c294025b79088032f3c77e8320 (diff)
downloadinvidious-eb7e48b05999b29670a2de80e6f53bd8b4fd8d15.tar.gz
invidious-eb7e48b05999b29670a2de80e6f53bd8b4fd8d15.tar.bz2
invidious-eb7e48b05999b29670a2de80e6f53bd8b4fd8d15.zip
use strict
Diffstat (limited to 'assets')
-rw-r--r--assets/js/community.js1
-rw-r--r--assets/js/embed.js1
-rw-r--r--assets/js/notifications.js1
-rw-r--r--assets/js/player.js1
-rw-r--r--assets/js/playlist_widget.js1
-rw-r--r--assets/js/subscribe_widget.js1
-rw-r--r--assets/js/themes.js1
-rw-r--r--assets/js/watch.js1
-rw-r--r--assets/js/watched_widget.js1
9 files changed, 9 insertions, 0 deletions
diff --git a/assets/js/community.js b/assets/js/community.js
index 4077f1cd..2e7a1f6d 100644
--- a/assets/js/community.js
+++ b/assets/js/community.js
@@ -1,3 +1,4 @@
+'use strict';
var community_data = JSON.parse(document.getElementById('community_data').innerHTML);
String.prototype.supplant = function (o) {
diff --git a/assets/js/embed.js b/assets/js/embed.js
index 9d0be0ea..7d66c8c4 100644
--- a/assets/js/embed.js
+++ b/assets/js/embed.js
@@ -1,3 +1,4 @@
+'use strict';
var video_data = JSON.parse(document.getElementById('video_data').innerHTML);
function get_playlist(plid, retries) {
diff --git a/assets/js/notifications.js b/assets/js/notifications.js
index 3d1ec1ed..68ea1e15 100644
--- a/assets/js/notifications.js
+++ b/assets/js/notifications.js
@@ -1,3 +1,4 @@
+'use strict';
var notification_data = JSON.parse(document.getElementById('notification_data').innerHTML);
var notifications, delivered;
diff --git a/assets/js/player.js b/assets/js/player.js
index f5bec651..496cdfd0 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -1,3 +1,4 @@
+'use strict';
var player_data = JSON.parse(document.getElementById('player_data').innerHTML);
var video_data = JSON.parse(document.getElementById('video_data').innerHTML);
diff --git a/assets/js/playlist_widget.js b/assets/js/playlist_widget.js
index 0ec27859..971f3806 100644
--- a/assets/js/playlist_widget.js
+++ b/assets/js/playlist_widget.js
@@ -1,3 +1,4 @@
+'use strict';
var playlist_data = JSON.parse(document.getElementById('playlist_data').innerHTML);
function add_playlist_video(target) {
diff --git a/assets/js/subscribe_widget.js b/assets/js/subscribe_widget.js
index 216c36fe..bb6c7556 100644
--- a/assets/js/subscribe_widget.js
+++ b/assets/js/subscribe_widget.js
@@ -1,3 +1,4 @@
+'use strict';
var subscribe_data = JSON.parse(document.getElementById('subscribe_data').innerHTML);
var subscribe_button = document.getElementById('subscribe');
diff --git a/assets/js/themes.js b/assets/js/themes.js
index 0214a7f0..2f4680c7 100644
--- a/assets/js/themes.js
+++ b/assets/js/themes.js
@@ -1,3 +1,4 @@
+'use strict';
var toggle_theme = document.getElementById('toggle_theme');
toggle_theme.href = 'javascript:void(0);';
diff --git a/assets/js/watch.js b/assets/js/watch.js
index 1579abf4..43df0561 100644
--- a/assets/js/watch.js
+++ b/assets/js/watch.js
@@ -1,3 +1,4 @@
+'use strict';
var video_data = JSON.parse(document.getElementById('video_data').innerHTML);
String.prototype.supplant = function (o) {
diff --git a/assets/js/watched_widget.js b/assets/js/watched_widget.js
index ba741974..372cbbab 100644
--- a/assets/js/watched_widget.js
+++ b/assets/js/watched_widget.js
@@ -1,3 +1,4 @@
+'use strict';
var watched_data = JSON.parse(document.getElementById('watched_data').innerHTML);
function mark_watched(target) {