Permalink
Browse files

history controll on scenemanager

  • Loading branch information...
felipevex committed Dec 5, 2018
1 parent 0d46288 commit 93bb0bad879200feedc5875a1d735ac076bfbc90
Showing with 2 additions and 9 deletions.
  1. +2 −9 priori/scene/PriSceneManager.hx
@@ -62,17 +62,10 @@ class PriSceneManager {
return value;
}
public function historyBack():Bool {
public function historyBack():Void {
try {
var currLoc:String = js.Browser.location.hash;
js.Browser.window.history.back();
if (currLoc == js.Browser.location.hash) return false;
else return true;
} catch(e:Dynamic) {
return false;
}
} catch(e:Dynamic) {}
}
public function hitoryForward():Void {
try {

0 comments on commit 93bb0ba

Please sign in to comment.