Skip to content

Commit

Permalink
Update src/components/alert.js
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
  • Loading branch information
dantesbr and dmitrylyzo authored Jan 7, 2025
1 parent 573455f commit f0c2fa6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +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.tizenVersion && browser.tizenVersion >= 8)
&& !browser.web0s
&& !(browser.tizenVersion && browser.tizenVersion < 3)
!browser.web0s
&& !(browser.tizenVersion && (browser.tizenVersion < 3 || browser.tizenVersion >= 8))
&& browser.tv
&& window.alert
);
Expand Down

0 comments on commit f0c2fa6

Please sign in to comment.