From ac58afd14b9ab8fcb6945cda5a2e70174e62193b Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Wed, 18 Dec 2019 13:59:44 -0500 Subject: [PATCH] Improve rendering of page title --- resources/js/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index c3a7990..e5500a6 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -13,8 +13,7 @@ let app = document.getElementById('app') new Vue({ metaInfo: { - title: 'Loading…', - titleTemplate: '%s | Ping CRM', + titleTemplate: (title) => title ? `${title} - Ping CRM` : 'Ping CRM' }, render: h => h(InertiaApp, { props: {