Open login flow in in-app browser for native (WIP)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import {isIOS, isAndroid} from './detection'
|
||||
|
||||
export function makeAppUrl(path = '') {
|
||||
if (isIOS) {
|
||||
return `pubsqapp://${path}`
|
||||
} else if (isAndroid) {
|
||||
return `pubsq://app${path}`
|
||||
} else {
|
||||
// @ts-ignore window exists -prf
|
||||
return `${window.location.origin}${path}`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user