Skip to content

Commit

Permalink
rewoups
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Jun 6, 2019
1 parent 67ed8f7 commit db4ee9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyphe_frontend/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIGFILE=/frontend/app/conf/conf.js
/bin/cp /frontend/app/conf/conf_default.js $CONFIGFILE

# This sets the API url & handle the case of microsoft browsers not handling CORS correctly
sed --in-place "s|'serverURL'\s*,.*|'serverURL', window.location.pathname === '/' ? '/api/' : window.location.pathname.replace(/\\/$/, '') + '/api/')|" $CONFIGFILE
sed --in-place "s|'serverURL'\s*,.*|'serverURL', window.location.pathname === '/' ? '/api/' : window.location.pathname.replace(/\\\/$/, '') + '/api/')|" $CONFIGFILE

[[ ! -z "${HYPHE_GOOGLE_ANALYTICS_ID}" ]] &&
sed --in-place "s|'googleAnalyticsId'\s*,.*|'googleAnalyticsId', '${HYPHE_GOOGLE_ANALYTICS_ID}')|" $CONFIGFILE
Expand Down

0 comments on commit db4ee9c

Please sign in to comment.