aboutsummaryrefslogtreecommitdiffstats
path: root/src/fullscreen_credits.ts
diff options
context:
space:
mode:
authorTeddy Wing2020-05-08 17:37:14 +0200
committerTeddy Wing2020-05-08 17:37:14 +0200
commitfa02ff6374f715c9f754ce28401c8a81846ca52a (patch)
tree640025aa8167f92b4062d96e51c7d1cf97563348 /src/fullscreen_credits.ts
parent6fe95288e9a929dfaf94fb67969ebcb6b759e28e (diff)
downloadnetflix-immersive-fa02ff6374f715c9f754ce28401c8a81846ca52a.tar.bz2
Use `const` variable declarations where possible
Diffstat (limited to 'src/fullscreen_credits.ts')
-rw-r--r--src/fullscreen_credits.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fullscreen_credits.ts b/src/fullscreen_credits.ts
index edd8a8f..8011657 100644
--- a/src/fullscreen_credits.ts
+++ b/src/fullscreen_credits.ts
@@ -3,10 +3,10 @@ import wait_element from './wait_element';
function init_mutation_observer (player) {
- var observer = new MutationObserver(function(mutation_list) {
+ const observer = new MutationObserver(function(mutation_list) {
for (var i = 0; i < mutation_list.length; i++) {
- var mutation = mutation_list[i];
- var player = mutation.target as HTMLElement;
+ const mutation = mutation_list[i];
+ const player = mutation.target as HTMLElement;
if (player.classList.contains('postplay')) {
player.classList.remove('postplay');