Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Commit ceb3cef

Browse files
committed
Header now displays correctly on all versions/builds
1 parent a3b404e commit ceb3cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Site {
115115
static binaryVersionToHumanReadableDateString (binaryVersion) {
116116
// Is this the dummy version that signals a development build?
117117
if (binaryVersion === '20000101000000') {
118-
return 'Dev'
118+
return 'Unbuilt (development version)'
119119
}
120120
const m = moment(binaryVersion, 'YYYYMMDDHHmmss')
121121
return `${m.format('MMMM Do, YYYY')} at ${m.format('HH:mm:ss')}`
@@ -194,7 +194,7 @@ class Site {
194194
this.readAndCacheManifest()
195195

196196
let message = [
197-
this.releaseChannel === this.RELEASE_CHANNEL.release ? `\n${prefix1}` : `\n${prefix1}Site.js\n\n`
197+
this.releaseChannel === this.RELEASE_CHANNEL.release || this.binaryVersion === '20000101000000' /* (dev) */ ? `\n${prefix1}` : `\n${prefix1}Site.js\n\n`
198198
].concat(this.releaseChannelFormattedForConsole).concat([
199199
`${prefix2}Created ${clr(this.humanReadableBinaryVersion, 'green')}\n`,
200200
'\n',

0 commit comments

Comments
 (0)