MCPcopy Index your code
hub / github.com/devploit/debugHunter / setupWhitelist

Function setupWhitelist

options.js:216–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214}
215
216function setupWhitelist() {
217 // Load initial whitelist
218 chrome.storage.sync.get('whitelist', (data) => {
219 renderWhitelist(data.whitelist || []);
220 });
221
222 // Handle add form
223 const form = document.getElementById('addWhitelistForm');
224 const input = document.getElementById('newWhitelistDomain');
225
226 if (form && input) {
227 form.addEventListener('submit', (e) => {
228 e.preventDefault();
229 const domain = input.value.trim().toLowerCase();
230 if (domain) {
231 addToWhitelist(domain);
232 input.value = '';
233 }
234 });
235 }
236}
237
238// ============================================================================
239// INITIALIZATION

Callers 1

options.jsFile · 0.85

Calls 2

renderWhitelistFunction · 0.85
addToWhitelistFunction · 0.85

Tested by

no test coverage detected