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}`; } };