Skip to content

Commit ecf104f

Browse files
author
Kevin Reynolds
committed
more again
1 parent b5b0a2a commit ecf104f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

labapp/app/templates/base.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139

140140
// Update the page with cached values if they exist
141141
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;
144144
} else {
145145
// Fetch from server if no valid cache exists
146146
fetch('/_ce_status')
@@ -152,8 +152,8 @@
152152
})
153153
.then(data => {
154154
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;
157157
// Cache the site name and state in cookies for 1 day
158158
setCookie('siteNameCache', data.site_name, 1);
159159
setCookie('stateCache', data.state, 1);

0 commit comments

Comments
 (0)