Remove console-messages for production build

This commit is contained in:
Christoph Oberhofer
2016-02-28 20:03:35 +01:00
parent 835f524b33
commit 47f0169709
8 changed files with 57 additions and 20 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ function loadedData(video, callback) {
function checkVideo() {
if (attempts > 0) {
if (video.videoWidth > 0 && video.videoHeight > 0) {
console.log(video.videoWidth + "px x " + video.videoHeight + "px");
if (ENV.development) {
console.log(video.videoWidth + "px x " + video.videoHeight + "px");
}
callback();
} else {
window.setTimeout(checkVideo, 500);