From c592027d1d712a40ca075c44b2408bba0db0c159 Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 13 Feb 2014 23:29:13 +0100 Subject: [PATCH] Suppress error messages when loading archive. --- www/js/lib/archive.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/www/js/lib/archive.js b/www/js/lib/archive.js index 0d92a299..6a007ef6 100644 --- a/www/js/lib/archive.js +++ b/www/js/lib/archive.js @@ -106,10 +106,10 @@ define(function(require) { index + 1); }, function(error) { // TODO there must be a better to way to detect a FileNotFound - if (error != "NotFoundError") { - alert("Error reading data file " + index + " in directory " - + directory + " : " + error); - } + // if (error != "NotFoundError") { + // alert("Error reading data file " + index + " in directory " + // + directory + " : " + error); + // } }); }; @@ -137,10 +137,10 @@ define(function(require) { index + 1); }, function(error) { // TODO there must be a better to way to detect a FileNotFound - if (error != "NotFoundError") { - alert("Error reading coordinates file " + index + " in directory " - + directory + " : " + error); - } + // if (error != "NotFoundError") { + // alert("Error reading coordinates file " + index + " in directory " + // + directory + " : " + error); + // } }); };