(settings)
| 68 | } |
| 69 | |
| 70 | function loadSettings(settings) { |
| 71 | if (settings.scriptsEnabled) { |
| 72 | updateLabelForEntry('entry-script', 'Enabled'); |
| 73 | } else { |
| 74 | updateLabelForEntry('entry-script', 'Disabled'); |
| 75 | } |
| 76 | |
| 77 | if (settings.blockPopups) { |
| 78 | updateLabelForEntry('entry-popups', 'Blocked'); |
| 79 | } else { |
| 80 | updateLabelForEntry('entry-popups', 'Allowed'); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | function updateLabelForEntry(elementId, label) { |
| 85 | let entryElement = document.getElementById(elementId); |
no test coverage detected