| Conditions | 4 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { getGlobalStorageProvider } from "./browserApi/storageProvider"; |
||
| 12 | function restoreOptions() { |
||
| 13 | document.querySelectorAll(OPTION_SELECTOR).forEach(optionElement => { |
||
| 14 | let defaultValue = optionElement.dataset.defaultValue === 'true' ? true : false; |
||
| 15 | |||
| 16 | getGlobalStorageProvider().getData(optionElement.id, defaultValue, value => { |
||
| 17 | optionElement.checked = value; |
||
| 18 | }); |
||
| 19 | }); |
||
| 20 | } |
||
| 21 | |||
| 48 | }); |
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.