@@ -50,7 +50,7 @@ const elements = {
5050 pathBox : document . getElementById ( "pathBox" ) ,
5151 copyPathButton : document . getElementById ( "copyPathButton" ) ,
5252 saveButton : document . getElementById ( "saveButton" ) ,
53-
53+
5454 reloadButton : document . getElementById ( "reloadButton" ) ,
5555 layout : document . getElementById ( "layout" ) ,
5656 overlay : document . getElementById ( "overlay" ) ,
@@ -340,7 +340,7 @@ function applyLanguageUi() {
340340 elements . copyPathButton . setAttribute ( "aria-label" , uiText ( "copyPath" ) ) ;
341341 elements . copyPathButton . setAttribute ( "title" , uiText ( "copyPath" ) ) ;
342342 elements . saveButton . textContent = uiText ( "save" ) ;
343-
343+
344344 elements . reloadButton . textContent = uiText ( "reload" ) ;
345345 elements . overlayTitle . textContent = uiText ( "overlayTitle" ) ;
346346 elements . overlayText . textContent = uiText ( "overlayText" ) ;
@@ -1037,15 +1037,15 @@ function renderForm() {
10371037 installSectionObserver ( groups ) ;
10381038
10391039 elements . saveButton . disabled = hasErrors || ! isDirty ( ) ;
1040-
1040+
10411041 elements . reloadButton . disabled = ! remoteState ;
10421042 refreshChrome ( ) ;
10431043}
10441044
10451045function refreshChrome ( ) {
10461046 const { errors } = collectDraft ( ) ;
10471047 elements . saveButton . disabled = Object . keys ( errors ) . length > 0 || ! isDirty ( ) ;
1048-
1048+
10491049 elements . reloadButton . disabled = ! remoteState ;
10501050 if ( externalRefreshQueued ) {
10511051 setBanner ( "warn" , uiText ( "bannerExternal" ) ) ;
@@ -1184,7 +1184,7 @@ async function loadRemote(initial = false) {
11841184 }
11851185 externalRefreshQueued = true ;
11861186 refreshChrome ( ) ;
1187-
1187+
11881188 }
11891189
11901190 refreshChrome ( ) ;
@@ -1218,9 +1218,9 @@ async function saveConfig() {
12181218 remoteState = result . state ;
12191219 draft = createDraftFromRemote ( result . state ) ;
12201220 baselineSnapshot = getDraftSnapshot ( ) ;
1221-
1222-
1223-
1221+
1222+
1223+
12241224 externalRefreshQueued = false ;
12251225 renderForm ( ) ;
12261226 setOverlay ( false , "" , "" ) ;
0 commit comments