Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

openURLInBrowser.web.ts 350B

123456789101112
  1. /**
  2. * Opens URL in the browser.
  3. *
  4. * @param {string} url - The URL to be opened.
  5. * @param {boolean} openInNewTab - If the link should be opened in a new tab.
  6. * @returns {void}
  7. */
  8. export function openURLInBrowser(url: string, openInNewTab?: boolean) {
  9. const target = openInNewTab ? '_blank' : '';
  10. window.open(url, target, 'noopener');
  11. }