Skip to content

Commit

Permalink
The web client loses focus when a popup is displayed on Samsung Smart…
Browse files Browse the repository at this point in the history
… TVs with Tizen 8 (OneUI/Tizen 8). This issue only occurs on the TV itself and not on the Tizen emulator.

Fixes the issue jellyfin/jellyfin-tizen#311
  • Loading branch information
dantesbr committed Jan 3, 2025
1 parent 92e8821 commit 5fdca9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import globalize from '../lib/globalize';
export default async function (text, title) {
// Modals seem to be blocked on Web OS and Tizen 2.x
const canUseNativeAlert = !!(
!browser.web0s
!(browser.tizenVersion && browser.tizenVersion >= 8)
&& !browser.web0s
&& !(browser.tizenVersion && browser.tizenVersion < 3)
&& browser.tv
&& window.alert
Expand Down
1 change: 1 addition & 0 deletions src/components/confirm/confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function useNativeConfirm() {
// webOS seems to block modals
// Tizen 2.x seems to block modals
return !browser.web0s
&& !(browser.tizenVersion && browser.tizenVersion >= 8)
&& !(browser.tizenVersion && browser.tizenVersion < 3)
&& browser.tv
&& window.confirm;
Expand Down

0 comments on commit 5fdca9b

Please sign in to comment.