mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
fix(types): change wrong type of 'types'
This commit is contained in:
@@ -16,7 +16,7 @@ class PreviewBar {
|
||||
onInvidious: boolean;
|
||||
|
||||
timestamps: number[][];
|
||||
types: string;
|
||||
types: string[];
|
||||
|
||||
constructor(parent: any, onMobileYouTube: boolean, onInvidious: boolean) {
|
||||
this.container = document.createElement('ul');
|
||||
@@ -137,7 +137,7 @@ class PreviewBar {
|
||||
}
|
||||
}
|
||||
|
||||
set(timestamps: number[][], types: string, duration: number): void {
|
||||
set(timestamps: number[][], types: string[], duration: number): void {
|
||||
while (this.container.firstChild) {
|
||||
this.container.removeChild(this.container.firstChild);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user