Skip to content

Commit

Permalink
51 use app name as browser title (#53)
Browse files Browse the repository at this point in the history
* #51 Use APP_NAME as base for the browser title

* Update app name in app.js
  • Loading branch information
MGHollander authored Oct 22, 2023
1 parent f8dc868 commit 03a93a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ 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 || import.meta.env.VITE_APP_NAME || "Laravel";
const appName = window.document.getElementsByTagName("title")[0]?.innerText || "Koken met Marc";

createInertiaApp({
title: (title) => {
Expand Down

0 comments on commit 03a93a9

Please sign in to comment.