MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Browser / loadSettings

Function loadSettings

wvbrowser_ui/content_ui/settings.js:70–82  ·  view source on GitHub ↗
(settings)

Source from the content-addressed store, hash-verified

68}
69
70function 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
84function updateLabelForEntry(elementId, label) {
85 let entryElement = document.getElementById(elementId);

Callers 1

messageHandlerFunction · 0.85

Calls 1

updateLabelForEntryFunction · 0.85

Tested by

no test coverage detected