Skip to content

Commit

Permalink
Add option to set platform string - add missing ''
Browse files Browse the repository at this point in the history
  • Loading branch information
marekgach committed Nov 8, 2018
1 parent b73c3ea commit 1f63b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Smartsupp/ChatGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function render($print_out = false)
}

if ($this->platform) {
$params[] = "_smartsupp.sitePlatform = " . self::javascriptEscape($this->platform) . ";";
$params[] = "_smartsupp.sitePlatform = '" . self::javascriptEscape($this->platform) . "';";
}

// set detailed visitor's info
Expand Down

0 comments on commit 1f63b44

Please sign in to comment.