Some arguments need to be optional

This commit is contained in:
Tamius Han 2021-03-06 03:34:38 +01:00
parent b83be3de7d
commit a699166368
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ class Settings {
return this.active.actions;
}
getExtensionMode(site) {
getExtensionMode(site?: string) {
if (!site) {
site = window.location.hostname;

View File

@ -505,7 +505,7 @@ class PageInfo {
}
}
restoreAr(playingOnly) {
restoreAr(playingOnly?: boolean) {
if (playingOnly) {
for(let vd of this.videos){
if (vd.isPlaying()) {