diff --git a/package.json b/package.json index c190367..2e4c1e2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "astro": "^4.0.3", "autoprefixer": "^10.4.14", "axios": "^1.6.0", - "canvas-confetti": "^1.6.0", "dayjs": "^1.11.9", "fuse.js": "^6.6.2", "highlight.js": "^11.8.0", diff --git a/src/pages/index.astro b/src/pages/index.astro index a3c5168..be3531f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -327,22 +327,6 @@ exec "<path-to-directory>/bin/lua-language-server" "$@" import axios from "axios"; import { TimeCache } from "~/classes/TimeCache"; import { assertElement } from "~/util/DOM"; - import confetti from "canvas-confetti"; - - const spawnConfetti = (element: HTMLElement) => { - const rect = element.getBoundingClientRect(); - const x = (rect.left + rect.width / 2) / window.innerWidth; - const y = (rect.top + rect.height / 2) / window.innerHeight; - - confetti({ - startVelocity: 6, - origin: { x, y }, - decay: 0.98, - gravity: 0.7, - disableForReducedMotion: true, - zIndex: 15, - }); - }; const ENDPOINT = "https://corsproxy.io/?https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery"; @@ -396,9 +380,6 @@ exec "<path-to-directory>/bin/lua-language-server" "$@" } else { installElement.textContent = numberFormatter.format(installs); } - if (installs ?? 0 >= 1e6) { - spawnConfetti(installElement); - }