mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Set opener to null when opening original URL with JavaScript.
This commit is contained in:
parent
9d8b5421ed
commit
0227bb9828
2 changed files with 6 additions and 4 deletions
|
@ -8,7 +8,9 @@ class DomHelper {
|
|||
}
|
||||
|
||||
static openNewTab(url) {
|
||||
let win = window.open(url, "_blank");
|
||||
let win = window.open("");
|
||||
win.opener = null;
|
||||
win.location = url;
|
||||
win.focus();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue