Sha256: 2a243377e220d84b54b14dd0a96f1459426dc17fdd0e333f51ce7bfd7f1dd1e1
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
window.Paloma = window.Paloma || {}; // // Do nothing if there is no available console. // if ( !window['console'] ){ Paloma.log = Paloma.warn = function(msg){}; } else { Paloma.warn = function(msg){ if (Paloma.env != 'development'){ return; } console.warn(msg); }; Paloma.log = function(msg){ if (Paloma.env != 'development'){ return; } console.log(msg); }; } $(document).ready(function(){ // Do not continue if Paloma not found. if (window['Paloma'] === undefined) { if (window['console'] !== undefined) { console.warn("Paloma not found. Require it in your application.js."); } return true; } Paloma.engine.start(); });
Version data entries
4 entries across 4 versions & 1 rubygems