From cccaf58ec3d56452507861fad2977d2898926053 Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 19 Feb 2025 18:00:32 +0300 Subject: [PATCH] reload page on successfull upload --- public/js/skin3d.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/skin3d.js b/public/js/skin3d.js index e3da2f4..d4e6b78 100644 --- a/public/js/skin3d.js +++ b/public/js/skin3d.js @@ -17,6 +17,8 @@ const uploadSkin = async (event) => { if (response.status != 200) { alert(await response.text()) + } else { + window.location.reload(true); } } @@ -39,6 +41,8 @@ const uploadCape = async (event) => { if (response.status != 200) { alert(await response.text()) + } else { + window.location.reload(true); } }