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([
100100 _processState : function ( ) {
101101 var anchor = window . location . hash ,
102102 isValid = $ . mage . isValidSelector ( anchor ) ,
103- urlPath = window . location . pathname . replace ( '.' , '' ) ;
103+ urlPath = window . location . pathname . replace ( / \. / g, '' ) ,
104+ state ;
104105
105106 this . stateKey = encodeURIComponent ( urlPath + this . element . attr ( "id" ) ) ;
106107
@@ -113,7 +114,7 @@ define([
113114 }
114115 }
115116 } else if ( this . options . saveState && ! this . options . disabled ) {
116- var state = this . storage . get ( this . stateKey ) ;
117+ state = this . storage . get ( this . stateKey ) ;
117118 if ( typeof state === 'undefined' || state === null ) {
118119 this . storage . set ( this . stateKey , this . options . active ) ;
119120 } else if ( state === true ) {
You can’t perform that action at this time.
0 commit comments