Remove console.log from various scripts

This commit is contained in:
Sami Samhuri 2019-12-03 08:45:34 -08:00
parent 72bbc433eb
commit 4e9c53a2f4
5 changed files with 3 additions and 18 deletions

View file

@ -48,7 +48,6 @@ h1, h3, p, footer { text-align: center }
$answer.innerText = isCakeDay ? 'happy ' + n + ord + ' cake day!' : 'nope';
} catch (e) {
$answer.innerText = 'maybe';
console.log(e);
}
};
}());

View file

@ -223,11 +223,7 @@
else {
var self = this
fetch(this.path, function(err, data) {
// console.log('FETCH', self.path, err, data)
if (err) {
// console.log(err)
}
else {
if (!err) {
self.data = data
mixin(self, data)
}
@ -246,11 +242,7 @@
else {
var self = this
fetch(this.path + '/' + thing, function(err, data) {
// console.log('FETCH SUBRESOURCE', self.path, thing, err, data)
if (err) {
// console.log(self.path, err)
}
else {
if (!err) {
self['_' + thing] = data
}
if (typeof cb === 'function') {

View file

@ -101,7 +101,6 @@
}
})
} else {
console.log('hit ' + t + ' (' + (+new Date() - t) + ')')
try {
updateBranches(SJS.projectName, data.get('branches'))
updateLangs(data.get('langs'))

View file

@ -20,9 +20,7 @@
var val = localStorage[makeKey(key)]
try {
while (typeof val === 'string') val = JSON.parse(val)
} catch (e) {
//console.log('string?')
}
} catch (e) {}
return val
},
set: function(key, val) {

View file

@ -31,9 +31,6 @@
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<script>
if (typeof console === 'undefined') {
console = { log: function() {} }
}
window.SJS = {
ready: function(fn) {
if (document.addEventListener) {