File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 31
31
var root = '//cdn.byu.edu/byu-theme-components/' ;
32
32
var min = true ;
33
33
34
+ var storedVersion = window . sessionStorage . getItem ( 'version' ) ;
34
35
35
36
// allow user to set a version or branch in the querystring
36
37
var version = getParameterByName ( 'version' ) ;
37
- if ( ! version )
38
- {
39
- version = 'latest' ;
38
+ if ( ! version ) {
39
+ version = storedVersion || 'latest' ;
40
40
}
41
- var branch = getParameterByName ( 'branch' ) ;
42
41
43
- if ( branch )
44
- {
42
+ var branch = getParameterByName ( ' branch' ) ;
43
+ if ( branch ) {
45
44
version = 'experimental/' + branch ;
46
45
}
46
+ window . sessionStorage . setItem ( 'version' , version ) ;
47
47
root = root + version ;
48
48
49
49
var isLocalhost = checkIfLocalhost ( ) ;
50
50
51
51
// allow testing other branches from localhost
52
- if ( version != 'latest' )
52
+ if ( version !== 'latest' )
53
53
isLocalhost = false ;
54
54
55
55
var isForced = window . location . search && window . location . search . indexOf ( 'load-local=true' ) >= 0 ;
You can’t perform that action at this time.
0 commit comments