From 8825bd3aa2c3c9f22225294c1e1f1549460625c5 Mon Sep 17 00:00:00 2001 From: EB25Ball Date: Thu, 17 Oct 2024 14:18:19 -0400 Subject: [PATCH] maybe loader text fix --- website/levels/viewer/scripts/level_viewer.js | 2 +- .../{levels/viewer/scripts => public/fonts}/Roboto_Regular.json | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename website/{levels/viewer/scripts => public/fonts}/Roboto_Regular.json (100%) diff --git a/website/levels/viewer/scripts/level_viewer.js b/website/levels/viewer/scripts/level_viewer.js index 9ca9d1c3..7d2c804c 100644 --- a/website/levels/viewer/scripts/level_viewer.js +++ b/website/levels/viewer/scripts/level_viewer.js @@ -1024,7 +1024,7 @@ function init() return finalStr.trim(); } - fontLoader.load(import.meta.env.BASE_URL+'./levels/viewer/scripts/Roboto_Regular.json', function (font) { + fontLoader.load('/fonts/Roboto_Regular.json', function (font) { const processedText = processString(signText); const lines = processedText.split('\n'); diff --git a/website/levels/viewer/scripts/Roboto_Regular.json b/website/public/fonts/Roboto_Regular.json similarity index 100% rename from website/levels/viewer/scripts/Roboto_Regular.json rename to website/public/fonts/Roboto_Regular.json