Skip to content
Snippets Groups Projects
Commit 552fe6ca authored by Ted Cooper's avatar Ted Cooper
Browse files

by ELC: Fix js setting to use strings over PHP bools.

parent 2729e054
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ function visual_website_optimizer_page_attachments(array &$attachments) {
if ($config->get('loading.type') == 'async') {
$settings['timeout_library'] = $config->get('loading.timeout.library');
$settings['timeout_setting'] = $config->get('loading.timeout.settings');
$settings['usejquery'] = ($config->get('loading.usejquery') == 'local') ? TRUE : FALSE;
$settings['usejquery'] = ($config->get('loading.usejquery') == 'local') ? 'true' : 'false';
$settings['testnull'] = NULL;
$attachments['#attached']['drupalSettings']['vwo'] = $settings;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment