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'; $answer.innerText = isCakeDay ? 'happy ' + n + ord + ' cake day!' : 'nope';
} catch (e) { } catch (e) {
$answer.innerText = 'maybe'; $answer.innerText = 'maybe';
console.log(e);
} }
}; };
}()); }());

View file

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

View file

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

View file

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

View file

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