1
0
Fork 0
mirror of https://github.com/kbparagua/paloma synced 2023-03-27 23:21:17 -04:00

Merge pull request #66 from monkbroc/check-for-paloma-in-hook

Check for the existence of Paloma in the hook Javascript
This commit is contained in:
Karl Bryan Paragua 2015-01-29 17:50:16 +08:00
commit 38adb494a7

View file

@ -3,6 +3,11 @@
<div class="js-paloma-hook" data-id="<%= id %>">
<script type="text/javascript">
(function(){
// Do not continue if Paloma not found.
if (window['Paloma'] === undefined) {
return true;
}
Paloma.env = '<%= Rails.env %>';
// Remove any callback details if any