mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
fix: lint
This commit is contained in:
parent
7604628496
commit
bff27a91cb
1 changed files with 3 additions and 3 deletions
|
@ -10,12 +10,12 @@ import ErrorBoundary from "@components/ErrorBoundary";
|
|||
import { Devs } from "@utils/constants";
|
||||
import { fetchUserProfile } from "@utils/discord";
|
||||
import { Queue } from "@utils/Queue";
|
||||
import { useAwaiter } from "@utils/react";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { useEffect, UserProfileStore, useState, useStateFromStores } from "@webpack/common";
|
||||
import { useEffect, UserProfileStore, useStateFromStores } from "@webpack/common";
|
||||
import { User } from "discord-types/general";
|
||||
|
||||
import style from "./index.css";
|
||||
import { useAwaiter } from "@utils/react";
|
||||
|
||||
const settings = definePluginSettings({
|
||||
animate: {
|
||||
|
@ -102,7 +102,7 @@ export default definePlugin({
|
|||
if (url!.includes("cdn.discordapp.com")) return true;
|
||||
|
||||
// HEAD request to check if the image is a png
|
||||
return await new Promise(async (resolve) => {
|
||||
return await new Promise(resolve => {
|
||||
usrbgQueue.push(() => fetch(url!.replace(".gif", ".png"), { method: "HEAD" }).then(async res => {
|
||||
console.log(res);
|
||||
await new Promise<void>(resolve => setTimeout(resolve, 1000));
|
||||
|
|
Loading…
Reference in a new issue