openLink.ts raw

   1  import { BrowserOpenURL } from "wailsjs/runtime/runtime";
   2  
   3  export const openLink = (url: string) => {
   4    // opens the link in the browser
   5    try {
   6      BrowserOpenURL(url);
   7    } catch (error) {
   8      console.error("Failed to open link", error);
   9      throw error;
  10    }
  11  };
  12