Fix check for existence

This commit is contained in:
Berkeley Martinez
2015-10-01 23:58:56 -07:00
parent 5f9022475c
commit a90fdf1e0c

View File

@ -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 || '');
}