index.uts 290 B

123456789101112
  1. import { OpenSchema, CanOpenURL } from '../interface.uts'
  2. export const openSchema : OpenSchema = function (url : string) : void {
  3. location.href = url;
  4. }
  5. export const canOpenURL : CanOpenURL = function (url : string) : boolean {
  6. if (url != "") {
  7. return true;
  8. }
  9. return false;
  10. }