Skip to content

Commit

Permalink
added support for Tizen and WebOS
Browse files Browse the repository at this point in the history
Prevent using Network Information API at web applications for Tizen and WebOS
  • Loading branch information
gizomo committed Dec 5, 2023
1 parent 1cd754d commit 06e2ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/nativeModule.web.ts
Expand Up @@ -75,7 +75,7 @@ declare global {
const isWindowPresent = typeof window !== 'undefined';

// Check if window exists and if the browser supports the connection API
const connection = isWindowPresent
const connection = (isWindowPresent && !window.hasOwnProperty('tizen') && !window.hasOwnProperty('webOS'))
? window.navigator.connection ||
window.navigator.mozConnection ||
window.navigator.webkitConnection
Expand Down

0 comments on commit 06e2ddb

Please sign in to comment.