Skip to content

Commit

Permalink
fix(FEC-9177): Smart TV showed as mobile device (#242)
Browse files Browse the repository at this point in the history
Change every check of device.type to mobile or tablet instead, there are more device types which not relevant.
  • Loading branch information
Yuvalke authored Jun 11, 2019
1 parent 6c4c73a commit 6f17d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/ui-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class UIWrapper {
}

_setStereoConfig(vrConfig: Object): void {
if (vrConfig.toggleStereo || (Env.device.type && vrConfig.toggleStereo !== false)) {
if (vrConfig.toggleStereo || ((Env.isMobile || Env.isTablet) && vrConfig.toggleStereo !== false)) {
// enable stereo mode by default for mobile device
this.setConfig(Utils.Object.mergeDeep({}, {vrStereoMode: !!vrConfig.startInStereo}), 'vrStereo');
}
Expand Down

0 comments on commit 6f17d2a

Please sign in to comment.