From a69916636823ecf4102a5529b2f865e6b6e7f227 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 6 Mar 2021 03:34:38 +0100 Subject: [PATCH] Some arguments need to be optional --- src/ext/lib/Settings.ts | 2 +- src/ext/lib/video-data/PageInfo.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ext/lib/Settings.ts b/src/ext/lib/Settings.ts index a4a1fe0..5ae064f 100644 --- a/src/ext/lib/Settings.ts +++ b/src/ext/lib/Settings.ts @@ -390,7 +390,7 @@ class Settings { return this.active.actions; } - getExtensionMode(site) { + getExtensionMode(site?: string) { if (!site) { site = window.location.hostname; diff --git a/src/ext/lib/video-data/PageInfo.ts b/src/ext/lib/video-data/PageInfo.ts index c8c3940..76bd02a 100644 --- a/src/ext/lib/video-data/PageInfo.ts +++ b/src/ext/lib/video-data/PageInfo.ts @@ -505,7 +505,7 @@ class PageInfo { } } - restoreAr(playingOnly) { + restoreAr(playingOnly?: boolean) { if (playingOnly) { for(let vd of this.videos){ if (vd.isPlaying()) {