Skip to content

Commit

Permalink
Merge pull request #2 from TheDMSGroup/integration-bugs
Browse files Browse the repository at this point in the history
Integration bugs
  • Loading branch information
heathdutton authored Feb 19, 2018
2 parents 153526e + 6fe0279 commit 0070353
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Assets/build/contactclient.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/build/contactclient.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Assets/build/contactclient.min.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions Assets/js/09.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
Mautic.contactclientIntegration = function () {
var $client = mQuery('#campaignevent_properties_config_contactclient:first'),
$overrides = mQuery('#campaignevent_properties_config_contactclient_overrides:first');
if (typeof window.contactclientIntegrationLoaded === 'undefined' && $client.length && $overrides.length) {

window.contactclientIntegrationLoaded = true;
if ($client.length && $overrides.length) {

// Get the JSON from the client selector, if not already present.
$client.change(function(){
Expand Down
6 changes: 5 additions & 1 deletion Helper/TokenHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ class TokenHelper
*/
public function __construct()
{
$this->engine = new Engine();
try {
$this->engine = new Engine();
} catch (\Exception $e) {
throw new \Exception('You may need to install Mustache via "composer require mustache/mustache".', 0, $e);
}
}

/**
Expand Down
Loading

0 comments on commit 0070353

Please sign in to comment.