From e5d46c611e4ef2b7f959c8fee404b4802acb3746 Mon Sep 17 00:00:00 2001 From: Creation's Date: Mon, 28 Oct 2024 20:56:47 -0400 Subject: [PATCH] feat(GifCollections): fix config importing (#86) * fix for equibop * fix for vesktop loading equicord --- src/equicordplugins/gifCollections/utils/settingsUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/gifCollections/utils/settingsUtils.ts b/src/equicordplugins/gifCollections/utils/settingsUtils.ts index 4b23d191..4d155941 100644 --- a/src/equicordplugins/gifCollections/utils/settingsUtils.ts +++ b/src/equicordplugins/gifCollections/utils/settingsUtils.ts @@ -16,7 +16,7 @@ export async function downloadCollections() { const exportData = await exportCollections(); const data = new TextEncoder().encode(exportData); - if (IS_WEB) { + if (IS_WEB || IS_EQUIBOP || IS_VESKTOP) { const file = new File([data], filename, { type: "application/json" }); const a = document.createElement("a"); a.href = URL.createObjectURL(file); @@ -57,7 +57,7 @@ export async function importCollections(data: string) { export async function uploadGifCollections(showToast = true): Promise { - if (IS_WEB) { + if (IS_WEB || IS_EQUIBOP || IS_VESKTOP) { const input = document.createElement("input"); input.type = "file"; input.style.display = "none";