IE compatible logging for developers - Node.js Environment

Node.js examples for Environment:Browser

Description

IE compatible logging for developers

Demo Code


/*/* w ww  .j av  a  2s. c  o  m*/
 * IE compatible logging for developers
 */
var logStr = function logStr(string) {
  if (window.console) {
    // IE...
    window.console.log('SweetAlert: ' + string);
  }
};

Related Tutorials