From 46cc4c65cfeddced270c06bc08f786c35a405723 Mon Sep 17 00:00:00 2001 From: Patrick Tang <36460266+patricksptang@users.noreply.github.com> Date: Fri, 29 Mar 2024 22:38:36 -0700 Subject: [PATCH] fix --- .../src/main/webapp/js/backbone/views/view_display_passage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/step-web/src/main/webapp/js/backbone/views/view_display_passage.js b/step-web/src/main/webapp/js/backbone/views/view_display_passage.js index a1bad18801..ac45887409 100644 --- a/step-web/src/main/webapp/js/backbone/views/view_display_passage.js +++ b/step-web/src/main/webapp/js/backbone/views/view_display_passage.js @@ -39,13 +39,13 @@ var PassageDisplayView = DisplayView.extend({ // console.log("place to add NT OT check: "+reference+ " " +bibleVersions); var justLoadedTOS = false; if ( ((bibleVersions.indexOf('ESV_MORPH') > -1) || (bibleVersions.indexOf('THOT') > -1)) || - ((window.location.toLowerCase().indexOf("dev.stepbible.org") > -1) && (bibleVersions.indexOf('ESV') > -1)) ) { + ((window.location.origin.toLowerCase().indexOf("dev.stepbible.org") > -1) && (bibleVersions.indexOf('ESV') > -1)) ) { justLoadedTOS = step.util.loadTOS(); hasTOS = true; } if ( ((bibleVersions.indexOf('ESV_MORPH') > -1) || (bibleVersions.indexOf('KJV') > -1) || (bibleVersions.indexOf('SBLG') > -1) || (bibleVersions.indexOf('THGNT') > -1) || (bibleVersions.indexOf('CUN') > -1)) || - ((window.location.toLowerCase().indexOf("dev.stepbible.org") > -1) && (bibleVersions.indexOf('ESV') > -1)) ) + ((window.location.origin.toLowerCase().indexOf("dev.stepbible.org") > -1) && (bibleVersions.indexOf('ESV') > -1)) ) hasNTMorph = true; if (this.partRendered) { if (cv[C_colorCodeGrammarAvailableAndSelected]) {