File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ define([
100
100
_processState : function ( ) {
101
101
var anchor = window . location . hash ,
102
102
isValid = $ . mage . isValidSelector ( anchor ) ,
103
- urlPath = window . location . pathname . replace ( '.' , '' ) ;
103
+ urlPath = window . location . pathname . replace ( / \. / g, '' ) ,
104
+ state ;
104
105
105
106
this . stateKey = encodeURIComponent ( urlPath + this . element . attr ( "id" ) ) ;
106
107
@@ -113,7 +114,7 @@ define([
113
114
}
114
115
}
115
116
} else if ( this . options . saveState && ! this . options . disabled ) {
116
- var state = this . storage . get ( this . stateKey ) ;
117
+ state = this . storage . get ( this . stateKey ) ;
117
118
if ( typeof state === 'undefined' || state === null ) {
118
119
this . storage . set ( this . stateKey , this . options . active ) ;
119
120
} else if ( state === true ) {
You can’t perform that action at this time.
0 commit comments