3 ms·
IMHO it'd be much better to just mock it than to litter your code with if() all over the place, similar to how polyfills do it (but without the actual functiona
by franciscop 9y ago
IMHO it'd be much better to just mock it than to litter your code with if() all over the place, similar to how polyfills do it (but without the actual functionality):
if (!window.ga) {
window.ga = function(){};
}