Skip to content

Commit ab983b9

Browse files
committed
Add anchor tag to document so links would open
1 parent ce3006d commit ab983b9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/assets/javascripts/active_admin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ document.addEventListener("DOMContentLoaded", function () {
5454
a.href = url;
5555
a.target = "_blank";
5656
a.rel = "noreferrer";
57+
a.style.display = "none";
58+
document.body.appendChild(a);
5759
a.dispatchEvent(
5860
new MouseEvent("click", { ctrlKey: true, metaKey: true }),
5961
);
62+
//a.remove();
6063
});
6164
},
6265

0 commit comments

Comments
 (0)