aboutsummaryrefslogtreecommitdiffstats
path: root/src/watch_credits.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch_credits.ts')
-rw-r--r--src/watch_credits.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/watch_credits.ts b/src/watch_credits.ts
index 99c67ca..ceba425 100644
--- a/src/watch_credits.ts
+++ b/src/watch_credits.ts
@@ -4,19 +4,19 @@ import wait_element from './wait_element';
function init_mutation_observer (controls) {
- 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 element = mutation.target as HTMLElement;
+ const mutation = mutation_list[i];
+ const element = mutation.target as HTMLElement;
- var watch_credits_button: HTMLButtonElement = element.querySelector(
+ const watch_credits_button: HTMLButtonElement = element.querySelector(
'[data-uia="watch-credits-seamless-button"]'
);
if (watch_credits_button) {
logger.debug('found Watch Credits button', watch_credits_button);
- var pointer_event = new PointerEvent('pointerdown', { bubbles: true });
+ const pointer_event = new PointerEvent('pointerdown', { bubbles: true });
watch_credits_button.dispatchEvent(pointer_event);
controls.hide();