forked from Blendman974/faceclaw
Port navigate and weather
This commit is contained in:
1 parent
2b3e068a23
commit
9e18745e53
33 files changed
+630
-60
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { Utils } from '@nativescript/core'
|
||||
declare const global: any
|
||||
|
||||
export function openUrlOnPhone(url: string): boolean {
|
||||
if (!/^https?:\/\//i.test(url)) return false
|
||||
if (NSThread.isMainThread) void Utils.openUrl(url)
|
||||
else global.postMessage({ type: 'open-url', url })
|
||||
return true
|
||||
}
|
||||
Reference in new issue
Block a user