Skip to content

Commit

Permalink
set cdn path by version (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeArmani authored Dec 17, 2024
1 parent eaf692f commit db25b49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,10 @@ function setModuleParams(obj, divID, previousResults) {
moduleParams.questDiv.innerHTML = ariaLiveAnnouncementRegions() + progressBar() + responseRequestedModal() + responseRequiredModal() + responseErrorModal() + submitModal() + storeErrorModal();
moduleParams.errorLogger = obj.errorLogger || defaultErrorLogger;

// TODO: update this path to the CDN once available.
// Set the base path for the module. This is used to fetch the stylesheets in initSurvey().
moduleParams.basePath = !moduleParams.isLocalDevelopment && moduleParams.questVersion
? 'https://episphere.github.io/quest-dev/'
: 'https://episphere.github.io/quest-dev/' //`https://cdn.jsdelivr.net/gh/episphere/quest@v${moduleParams.questVersion}/`;
? `https://cdn.jsdelivr.net/gh/episphere/quest@v${moduleParams.questVersion}/`
: 'https://episphere.github.io/quest-dev/'
}

function isLocalDevelopment() {
Expand Down

0 comments on commit db25b49

Please sign in to comment.