mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 22:01:38 +08:00
Remove console-messages for production build
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user