aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fastmail/webview-unsafe.js
blob: 7588988538bedb4bb953d43cc485ea1a5c0e069a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
const interval = setInterval(() => {
  if (!window.O || !window.O.WindowController) return;
  window.O.WindowController.openExternal = function (href) {
    const temp = document.createElement('a');
    temp.setAttribute('href', href);
    temp.setAttribute('target', '_blank');
    temp.click();
  };
  clearInterval(interval);
}, 200);