From 980622c365e2b788e093a7ca48983a126272df0b Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Wed, 28 Jan 2026 20:00:46 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Improve=20readability=20of=20raw=20?= =?UTF-8?q?file=20size=20check=20and=20error=20message=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pokedex.online/src/views/GamemasterExplorer.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue index 012ecdf..bfd30e0 100644 --- a/code/websites/pokedex.online/src/views/GamemasterExplorer.vue +++ b/code/websites/pokedex.online/src/views/GamemasterExplorer.vue @@ -452,9 +452,14 @@ async function loadFile() { // Check if raw file is too large (> 50MB) if (selectedFile.value === 'raw') { - const rawFile = status.value.available?.find(f => f.filename.includes('raw')); + const rawFile = status.value.available?.find(f => + f.filename.includes('raw') + ); if (rawFile && rawFile.size > 50 * 1024 * 1024) { - error.value = '⚠️ Raw gamemaster file is very large (' + formatSize(rawFile.size) + '). It may be slow to load. Try a specific file type instead (Pokemon, All Forms, or Moves).'; + error.value = + '⚠️ Raw gamemaster file is very large (' + + formatSize(rawFile.size) + + '). It may be slow to load. Try a specific file type instead (Pokemon, All Forms, or Moves).'; loading.value = false; return; }