From 4938b2a72ae6389a21d74fb6799fb864e9c4e146 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 21 Dec 2019 13:23:21 -0500 Subject: [PATCH] [O] Make identifier required --- src/logic/nav-controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic/nav-controller.ts b/src/logic/nav-controller.ts index a101767..59639f6 100644 --- a/src/logic/nav-controller.ts +++ b/src/logic/nav-controller.ts @@ -4,7 +4,7 @@ export interface Index { hash: string title?: string - identifier?: string + identifier: string info?: any } @@ -49,7 +49,7 @@ export default class NavController updateIndex(index: Index | string, history?: boolean) { // Convert index format if it is hash only - if (typeof index == 'string') index = {hash: index}; + if (typeof index == 'string') index = {hash: index, identifier: index}; // Call custom event if (this.updateCallback != null) this.updateCallback();