File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 139
139
140
140
// Update the page with cached values if they exist
141
141
if ( cachedSiteName && cachedState ) {
142
- document . getElementById ( 'siteName' ) . textContent = ` ${ cachedSiteName } ` ;
143
- document . getElementById ( 'siteState' ) . textContent = ` ${ cachedState } ` ;
142
+ document . getElementById ( 'siteName' ) . textContent = cachedSiteName ;
143
+ document . getElementById ( 'siteState' ) . textContent = cachedState ;
144
144
} else {
145
145
// Fetch from server if no valid cache exists
146
146
fetch ( '/_ce_status' )
152
152
} )
153
153
. then ( data => {
154
154
if ( ! data . err ) {
155
- document . getElementById ( 'siteName' ) . textContent = ` ${ cachedSiteName } ` ;
156
- document . getElementById ( 'siteState' ) . textContent = ` ${ cachedState } ` ;
155
+ document . getElementById ( 'siteName' ) . textContent = cachedSiteName ;
156
+ document . getElementById ( 'siteState' ) . textContent = cachedState ;
157
157
// Cache the site name and state in cookies for 1 day
158
158
setCookie ( 'siteNameCache' , data . site_name , 1 ) ;
159
159
setCookie ( 'stateCache' , data . state , 1 ) ;
You can’t perform that action at this time.
0 commit comments