mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
feat(GifCollections): fix config importing (#86)
* fix for equibop * fix for vesktop loading equicord
This commit is contained in:
parent
0aa9257695
commit
e5d46c611e
1 changed files with 2 additions and 2 deletions
|
@ -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<void> {
|
||||
if (IS_WEB) {
|
||||
if (IS_WEB || IS_EQUIBOP || IS_VESKTOP) {
|
||||
const input = document.createElement("input");
|
||||
input.type = "file";
|
||||
input.style.display = "none";
|
||||
|
|
Loading…
Reference in a new issue