File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { QContext } from "../../index" ;
22import { getCurrentEnvURL } from "../utils" ;
33
4- export default function setLocationPath ( context : QContext , done : ( ) => void ) : void {
5-
6- const { currentLocationPath, instance } = context ;
7-
8- if ( typeof currentLocationPath === "undefined" ) {
9- context . currentLocationPath = context . to = getCurrentURLPath ( instance . root ) ;
4+ export default function setLocationPath ( context : QContext , done ) {
5+ if ( typeof context . currentLocationPath === "undefined" ) {
6+ context . currentLocationPath = context . to = getCurrentEnvURL (
7+ context . instance . root
8+ ) ;
109 }
11-
12- context . currentLocationPath = instance . _checkForAHash ( currentLocationPath ) ;
13-
10+ context . currentLocationPath = context . instance . _checkForAHash (
11+ context . currentLocationPath
12+ ) ;
1413 done ( ) ;
1514}
You can’t perform that action at this time.
0 commit comments