From 2e1bf0c652bb38d09d5d48b4ebfc6fd23c17b0e8 Mon Sep 17 00:00:00 2001 From: Sonderau Date: Sat, 17 Jan 2026 01:14:24 +0000 Subject: [PATCH] Fix ESLint errors in dev title prefix --- os-league-tools-master/src/App.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/os-league-tools-master/src/App.js b/os-league-tools-master/src/App.js index 08a2d9b1..3545171e 100644 --- a/os-league-tools-master/src/App.js +++ b/os-league-tools-master/src/App.js @@ -41,11 +41,10 @@ history.listen(() => { } }); -const isDevEnvironment = () => { - return window.location.hostname.startsWith('dev.') || - window.location.hostname === 'localhost' || - window.location.port === '3001'; -}; +const isDevEnvironment = () => + window.location.hostname.startsWith('dev.') || + window.location.hostname === 'localhost' || + window.location.port === '3001'; export default function App() { useEffect(() => { @@ -60,11 +59,13 @@ export default function App() { // Prefix title with [DEV] on dev environment useEffect(() => { - if (!isDevEnvironment()) return; + if (!isDevEnvironment()) { + return undefined; + } const prefixTitle = () => { if (!document.title.startsWith('[DEV] ')) { - document.title = '[DEV] ' + document.title; + document.title = `[DEV] ${document.title}`; } };