mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
Remove console.log from various scripts
This commit is contained in:
parent
72bbc433eb
commit
4e9c53a2f4
5 changed files with 3 additions and 18 deletions
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
|
||||||
|
|
@ -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') {
|
||||||
|
|
|
||||||
|
|
@ -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'))
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue