Skip to content

Commit 3a51927

Browse files
committed
Rely on commandArgs.platform to Detect Titan
1 parent ab4488e commit 3a51927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StremioVideo/selectVideoImplementation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function selectVideoImplementation(commandArgs, options) {
3838
if (commandArgs.platform === 'webOS') {
3939
return withStreamingServer(withHTMLSubtitles(WebOsVideo));
4040
}
41-
if (window.Titanos) {
41+
if (commandArgs.platform === 'TitanOS') {
4242
return withStreamingServer(withHTMLSubtitles(TitanVideo));
4343
}
4444
return withStreamingServer(withHTMLSubtitles(HTMLVideo));
@@ -51,7 +51,7 @@ function selectVideoImplementation(commandArgs, options) {
5151
if (commandArgs.platform === 'webOS') {
5252
return withVideoParams(withHTMLSubtitles(WebOsVideo));
5353
}
54-
if (window.Titanos) {
54+
if (commandArgs.platform === 'TitanOS') {
5555
return withVideoParams(withHTMLSubtitles(TitanVideo));
5656
}
5757
return withVideoParams(withHTMLSubtitles(HTMLVideo));

0 commit comments

Comments
 (0)