Skip to content
Permalink
Browse files

clear history

  • Loading branch information...
felipevex committed May 6, 2019
1 parent 978d0b9 commit a85b7cba224ae4e76b3b8b6e4402a33e6d5d211b
Showing with 7 additions and 0 deletions.
  1. +7 −0 priori/scene/PriSceneManager.hx
@@ -45,6 +45,13 @@ class PriSceneManager {
this.router = new RouteManager();
}

public function clearHistoryAndNavigate(path:String):Void {
try {
js.Browser.window.history.go(js.Browser.window.history.length * -1);
this.replaceAndNavigate(path);
} catch (e:Dynamic) {}
}

public function hasScope(scope:String) return this.router.hasScope(scope);
public function addScope(scope:String):Void this.router.addScope(scope);
public function removeScope(scope:String):Void this.router.removeScope(scope);

0 comments on commit a85b7cb

Please sign in to comment.
You can’t perform that action at this time.