Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/riese/wait_for_serverup' into au…
Browse files Browse the repository at this point in the history
…tostaging
  • Loading branch information
MartinRiese committed Jul 25, 2024
2 parents b7c5cf6 + 036fa38 commit c48c2a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion corehq/apps/cloudcare/static/cloudcare/js/formplayer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hqDefine("cloudcare/js/formplayer/main", [
FormplayerFrontEnd,
sentry
) {
$(function () {
$(async function () {
sentry.initSentry();

window.MAPBOX_ACCESS_TOKEN = initialPageData.get('mapbox_access_token'); // maps api is loaded on-demand
Expand All @@ -24,6 +24,7 @@ hqDefine("cloudcare/js/formplayer/main", [
singleAppMode: false,
environment: initialPageData.get('environment'),
};
await FormplayerFrontEnd.xsrfRequest;
FormplayerFrontEnd.start(options);

var $menuToggle = $('#commcare-menu-toggle'),
Expand Down

0 comments on commit c48c2a5

Please sign in to comment.