mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 21:53:04 -04:00
This commit is contained in:
parent
317916a5b1
commit
ef086f24ca
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ export async function exportLogs() {
|
||||||
const messages = await getAllMessagesIDB();
|
const messages = await getAllMessagesIDB();
|
||||||
const data = JSON.stringify({ messages }, null, 2);
|
const data = JSON.stringify({ messages }, null, 2);
|
||||||
|
|
||||||
if (IS_WEB || IS_VESKTOP) {
|
if (IS_WEB || IS_VESKTOP || IS_EQUIBOP || !DiscordNative) {
|
||||||
const file = new File([data], filename, { type: "application/json" });
|
const file = new File([data], filename, { type: "application/json" });
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = URL.createObjectURL(file);
|
a.href = URL.createObjectURL(file);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue