Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions chrome/background/BackgroundUtils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import {EnvUtils} from '../player/utils/EnvUtils.mjs';
import {URLUtils} from '../player/utils/URLUtils.mjs';
import {MpvBackend} from './MpvBackend.mjs';
import {isSubtitles} from './StreamDetection.mjs';

const PlayerURL = chrome.runtime.getURL('player/index.html');

Expand Down Expand Up @@ -225,11 +226,11 @@ export class BackgroundUtils {
}

/**
* @param {string} ext - A file extension or type (background.mjs urlType).
* @param {string} ext - A file extension or type (StreamDetection.urlType).
* @return {boolean}
*/
static isSubtitles(ext) {
return ext === 'vtt' || ext === 'srt';
return isSubtitles(ext);
}

/**
Expand Down
Loading
Loading