From 5152ea259e0838472d29933e9fd72fec6f395e05 Mon Sep 17 00:00:00 2001
From: Thibaud <thibaud.gasser@gmx.com>
Date: Thu, 30 Jan 2025 23:34:05 +0100
Subject: [PATCH] fix image path

---
 .github/workflows/main.yml | 1 +
 image.ts                   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 443436e..59ce011 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -19,6 +19,7 @@ jobs:
           mkdir dist
           mv *.js dist/
           mv *.html dist/
+          mv rose.png dist/
       - name: Setup Pages
         id: pages
         uses: actions/configure-pages@v5
diff --git a/image.ts b/image.ts
index 11a3ab6..c765c02 100644
--- a/image.ts
+++ b/image.ts
@@ -5,7 +5,7 @@ if (!ctx) throw new Error("unable to get canvas 2D context");
 
 const img = new Image();
 img.crossOrigin = "anonymous";
-img.src = "/rose.png";
+img.src = "rose.png";
 img.onload = () => {
     /*canvas.offscreenCanvas = document.createElement("canvas");
     canvas.offscreenCanvas.height = img.height;