File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 129129 x ,
130130 inputs = $ ( this ) . find ( ':input' ) ,
131131 profane = false ,
132- data = [ ] ;
132+ data = [ ] ,
133+ localSwearsKey = 'localSwears' + options . externalSwears ;
133134
134135 if ( options . externalSwears !== null ) {
135136 if ( localStorageIsEnabled ) {
136- if ( localStorage . getItem ( 'localSwears' ) === null ) {
137+ if ( localStorage . getItem ( localSwearsKey ) === null ) {
137138 // stringify the array so that it can be stored in local storage
138- localStorage . setItem ( 'localSwears' , JSON . stringify ( readJsonFromController ( options . externalSwears ) ) ) ;
139+ localStorage . setItem ( localSwearsKey , JSON . stringify ( readJsonFromController ( options . externalSwears ) ) ) ;
139140 }
140- badWords = JSON . parse ( localStorage . getItem ( 'localSwears' ) ) ;
141+ badWords = JSON . parse ( localStorage . getItem ( localSwearsKey ) ) ;
141142 } else {
142143 badWords = readJsonFromController ( options . externalSwears ) ;
143144 }
194195 } ;
195196 } ) ;
196197 } ;
197- } ) ( jQuery ) ;
198+ } ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments