[+] Encapsulate updateIndex with only hash

This commit is contained in:
Hykilpikonna
2019-12-21 11:49:06 -05:00
parent 128dbb2ca7
commit ea46d16836
+11
View File
@@ -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
*