Skip to content

Commit

Permalink
referrer test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnyder committed Oct 6, 2021
1 parent 974be4e commit 8203104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h1>Update Juncture site</h1>
const referrerUrl = document.referrer
if (referrerUrl) {
const referrer = parseUrl(referrerUrl)
if (referrer.host === 'github.com' && referrer.pathname.indexOf('/jstor-labs/juncture/wiki') < 0) {
if ((referrer.host === 'github.com' || referrer.host === 'juncture-digital.org') && referrer.pathname.indexOf('/jstor-labs/juncture/wiki') < 0) {
const referrerPath = referrer.pathname.slice(1).split('/')
const ghAcct = referrerPath[0]
const ghRepo = referrerPath[1]
Expand Down Expand Up @@ -1098,7 +1098,7 @@ <h1>Update Juncture site</h1>
// logging watchers
params (params) {
// console.log('params', params)
// Load custom components declared in page markdown
// Load custom compoxnents declared in page markdown
params
.filter(param => param['ve-component'] !== undefined)
.map(param => param.url)
Expand Down

0 comments on commit 8203104

Please sign in to comment.