mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-21 20:49:56 +00:00
feat: open attachments in new tab
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
@@ -288,6 +288,8 @@ class File {
|
||||
if (src) {
|
||||
const a = document.createElement("a");
|
||||
a.href = src;
|
||||
a.target = "_blank";
|
||||
a.rel = "noopener noreferrer";
|
||||
if (url)
|
||||
url.then((_) => {
|
||||
a.href = _;
|
||||
|
||||
Reference in New Issue
Block a user