Merge pull request #3560 from FreeCodeCamp/fix/common-is-undefined
Fix check for existence
This commit is contained in:
@ -35,5 +35,5 @@
|
||||
a.btn.btn-lg.btn-primary.btn-block(href='#', data-dismiss='modal', aria-hidden='true') Cancel
|
||||
script.
|
||||
if (typeof localStorage !== 'undefined') {
|
||||
localStorage.setItem('currentDashedName', common.dashedName || dashedName || '');
|
||||
localStorage.setItem('currentDashedName', typeof common !== 'undefined' && common.dashedName || dashedName || '');
|
||||
}
|
||||
|
Reference in New Issue
Block a user