Merge pull request #2439 from cpmsmith/window-open-noopener

fix: open external links in default browser from macOS PWA
main
Simon Legner 1 day ago committed by GitHub
commit 03c4c5e6f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -457,13 +457,13 @@ $.noop = function () {};
$.popup = function (value) {
try {
window.open(value.href || value, "_blank", "noopener");
} catch (error) {
const win = window.open();
if (win.opener) {
win.opener = null;
}
win.location = value.href || value;
} catch (error) {
window.open(value.href || value, "_blank");
}
};

Loading…
Cancel
Save