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

Function updateReloadButton

wvbrowser_ui/controls_ui/default.js:309–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307
308// Update reload button for the active tab
309function updateReloadButton() {
310 if (activeTabId == INVALID_TAB_ID) {
311 return;
312 }
313
314 let activeTab = tabs.get(activeTabId);
315
316 let btnReload = document.getElementById('btn-reload');
317 if (!btnReload) {
318 refreshControls();
319 return;
320 }
321
322 btnReload.className = activeTab.isLoading ? 'btn-cancel' : 'btn';
323}
324
325// Update lock icon for the active tab
326function updateLockIcon() {

Callers 1

updateNavigationUIFunction · 0.85

Calls 1

refreshControlsFunction · 0.85

Tested by

no test coverage detected