mirror of https://github.com/jitsi/jitsi-meet
React Native provides a Platform abstraction which React does not provide.pull/1252/head
parent
7de5c9c1d2
commit
62bafcaf63
@ -1,17 +0,0 @@ |
||||
/** |
||||
* Returns true if user agent is run on Android. |
||||
* |
||||
* @returns {boolean} |
||||
*/ |
||||
export function detectAndroid() { |
||||
return Boolean(navigator.userAgent.match(/Android/i)); |
||||
} |
||||
|
||||
/** |
||||
* Returns true if user agent is run on iOS. |
||||
* |
||||
* @returns {boolean} |
||||
*/ |
||||
export function detectIOS() { |
||||
return Boolean(navigator.userAgent.match(/iP(ad|hone|od)/i)); |
||||
} |
@ -1,3 +1,2 @@ |
||||
export * from './detectDevices'; |
||||
export * from './loadScript'; |
||||
export * from './roomnameGenerator'; |
||||
|
@ -1,21 +0,0 @@ |
||||
import { ReducerRegistry } from '../base/redux'; |
||||
|
||||
import { LANDING_IS_SHOWN } from './actionTypes'; |
||||
|
||||
ReducerRegistry.register('features/landing', (state = {}, action) => { |
||||
switch (action.type) { |
||||
case LANDING_IS_SHOWN: |
||||
return { |
||||
...state, |
||||
|
||||
/** |
||||
* Flag that shows that mobile landing is shown. |
||||
* |
||||
* @type {boolean} |
||||
*/ |
||||
landingIsShown: true |
||||
}; |
||||
} |
||||
|
||||
return state; |
||||
}); |
@ -0,0 +1,23 @@ |
||||
import { ReducerRegistry } from '../base/redux'; |
||||
|
||||
import { LANDING_IS_SHOWN } from './actionTypes'; |
||||
|
||||
ReducerRegistry.register( |
||||
'features/unsupported-browser', |
||||
(state = {}, action) => { |
||||
switch (action.type) { |
||||
case LANDING_IS_SHOWN: |
||||
return { |
||||
...state, |
||||
|
||||
/** |
||||
* Flag that shows that mobile landing is shown. |
||||
* |
||||
* @type {boolean} |
||||
*/ |
||||
landingIsShown: true |
||||
}; |
||||
} |
||||
|
||||
return state; |
||||
}); |
Loading…
Reference in new issue