This commit is contained in:
2026-09-24 16:25:22 +08:00
commit 7428184f01
1198 changed files with 314515 additions and 0 deletions
@@ -0,0 +1,16 @@
import { URL } from 'Foundation';
import { UIApplication } from 'UIKit';
export function openWeb(url : string) {
let href = new URL(string = url)
if (UTSiOS.available("iOS 16.0, *")) {
if (UIApplication.shared.canOpenURL(href!)) {
UIApplication.shared.open(href!, options= new Map(), completionHandler= nil)
}
}else{
if (UIApplication.shared.canOpenURL(href!)) {
UIApplication.shared.openURL(href!)
}
}
}