Skip to content

Commit

Permalink
Disable admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnyder committed Jul 27, 2021
1 parent 94aba8c commit d46d6fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h1>Update Juncture site</h1>
console.log(window.location)
const ENV = window.location.hostname === 'localhost' || window.location.hostname.indexOf('gitpod') > 0 ? 'DEV' : 'PROD'
let isJuncture = window.location.hostname.indexOf('juncture-digital.org') === 0 || ENV === 'DEV'
const junctureVersion = 'v0.4.1'
const junctureVersion = 'v0.4.2'
let junctureVersionHash

const referrerUrl = document.referrer
Expand Down Expand Up @@ -730,7 +730,7 @@ <h1>Update Juncture site</h1>
console.log(`loadEssay: basePath=${contentSource.basePath} path=${path} anchor=${this.anchor}`)
// let pathsToTry = [`${path}index.md`, `${path}README.md`, `${path.slice(0,-1)}.md`]
let pathsToTry = [`${path}index.md`, `${path}README.md`, `${path.slice(0,-1)}.md`]
if (this.authenticatedUser !== null) pathsToTry = [...[`${path}admin.md`], ...pathsToTry]
// if (this.authenticatedUser !== null) pathsToTry = [...[`${path}admin.md`], ...pathsToTry]
let markdown
for (let i = 0; i < pathsToTry.length; i++) {
markdown = await this.getMarkdown(pathsToTry[i])
Expand Down Expand Up @@ -1488,9 +1488,9 @@ <h1>Update Juncture site</h1>
let resp = await fetch(configUrl)
if (resp.ok) {
config = YAML.parse(await resp.text())
} else {
resp = await fetch(`${window.location.origin}${contentSource.basePath}/config.template.yaml`)
if (resp.ok) config = YAML.parse(await resp.text())
//} else {
// resp = await fetch(`${window.location.origin}${contentSource.basePath}/config.template.yaml`)
// if (resp.ok) config = YAML.parse(await resp.text())
}

ghUnscopedToken = config.ghUnscopedToken
Expand Down

0 comments on commit d46d6fb

Please sign in to comment.