blob: b06e717132ed4ecd843cb5e85291798e50f7ee59 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
jQuery( document ).ready( function ( $ ) {
'use strict';
/*
|--------------------------------------------------------------------------
| Developer mode
|--------------------------------------------------------------------------
|
| Set to true - it will allow printing in the console. Alsways check for this
| variables when running tests so you dont forget about certain console.logs.
| Id needed for development testing this variable should be used.
|
*/
const devMode = function() {
return true;
};
// Disable console.log for production site.
if ( ! devMode() ) {
console.log = function() {};
}
});
|