mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 18:02:13 +00:00
HTMLSubtitles constructor arguments validation fixed
This commit is contained in:
parent
fab2c1fff6
commit
e1bb1b41e5
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ var FONT_SIZE = Object.freeze({
|
|||
});
|
||||
|
||||
function HTMLSubtitles(containerElement) {
|
||||
if (!(containerElement instanceof HTMLElement) || typeof containerElement.id !== 'string') {
|
||||
if (!(containerElement instanceof HTMLElement) || !containerElement.hasAttribute('id')) {
|
||||
throw new Error('Instance of HTMLElement with id attribute required as a first argument');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue