From 2ecd1bcc5b925ede47296a8544fd9dcf9e5a978a Mon Sep 17 00:00:00 2001 From: Marc Hollander Date: Fri, 20 Oct 2023 21:42:32 +0200 Subject: [PATCH] #51 Use APP_NAME as base for the browser title --- resources/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/app.js b/resources/js/app.js index d3035f4..69bbf48 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -7,7 +7,8 @@ import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers"; import { createApp, h } from "vue"; import { ZiggyVue } from "../../vendor/tightenco/ziggy/dist/vue.m"; -const appName = window.document.getElementsByTagName("title")[0]?.innerText || "Laravel"; +const appName = + window.document.getElementsByTagName("title")[0]?.innerText || import.meta.env.VITE_APP_NAME || "Laravel"; createInertiaApp({ title: (title) => {