Skip to content

Commit

Permalink
#51 Use APP_NAME as base for the browser title (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
MGHollander authored Oct 20, 2023
1 parent dbfd283 commit f8dc868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f8dc868

Please sign in to comment.