diff --git a/src/logic/navigator.ts b/src/logic/navigator.ts index d825011..7b297c8 100644 --- a/src/logic/navigator.ts +++ b/src/logic/navigator.ts @@ -11,6 +11,17 @@ export default class Navigator private activeIndex: Index; private updateCallback?: () => void; + /** + * Update index + * + * @param hash + * @param history Record in history or not (Default true) + */ + updateIndexHash(hash: string, history?: boolean) + { + this.updateIndex({hash: hash}, history) + } + /** * Update index *