Skip to content

Commit

Permalink
TSML UI shortcode compatibility with block themes (#722)
Browse files Browse the repository at this point in the history
* defer javascript and trying to suppress header / footer warnings

* implementing brian and wayne's suggestions

* undoing changes to other template files
  • Loading branch information
joshreisner authored Mar 6, 2022
1 parent 5d05236 commit 9bf8814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function tsml_ui()
{
global $tsml_mapbox_key, $tsml_nonce, $tsml_conference_providers, $tsml_language, $tsml_programs, $tsml_program, $tsml_ui_config, $tsml_feedback_addresses;
$js = defined('TSML_UI_PATH') ? TSML_UI_PATH : 'https://tsml-ui.code4recovery.org/app.js';
wp_enqueue_script('tsml_ui', $js);
wp_enqueue_script('tsml_ui', $js, [], false, true);
wp_localize_script('tsml_ui', 'tsml_react_config', array_merge(
[
'conference_providers' => $tsml_conference_providers,
Expand Down

0 comments on commit 9bf8814

Please sign in to comment.