[+] Auto format title if null

This commit is contained in:
Hykilpikonna
2019-12-21 11:44:43 -05:00
parent 097985f087
commit 128dbb2ca7
+2
View File
@@ -1,3 +1,4 @@
import {FormatUtils} from '@/logic/utils/format-utils';
export interface Index
{
@@ -23,6 +24,7 @@ export default class Navigator
// Null case
if (history == null) history = true;
if (index.title == null) index.title = FormatUtils.toTitleCase(index.hash);
// Record history or not
if (history)