1 | if (typeof ss === 'undefined' || typeof ss.i18n === 'undefined') { |
||
0 ignored issues
–
show
|
|||
2 | /* eslint-disable-next-line no-console */ |
||
3 | console.error('Class ss.i18n not defined') |
||
4 | } else { |
||
5 | ss.i18n.addDictionary('en', { |
||
6 | 'AssetAdmin.DETAILS': 'Edit' |
||
7 | }) |
||
8 | } |
||
9 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.