bug 546528 - Check for archive domain

Change-Id: I298cdb2c18a84297e433a935e5bb654914c4ec0c
Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
diff --git a/download.eclipse.org/downloads_directory.js b/download.eclipse.org/downloads_directory.js
index a500920..fc42157 100644
--- a/download.eclipse.org/downloads_directory.js
+++ b/download.eclipse.org/downloads_directory.js
@@ -16,7 +16,7 @@
 
     $('.downloads-directory').submit(function() {
       var action = "archive";
-      if (window.location.href.indexOf("archive.eclispe.org") > 0) {
+      if (document.domain.indexOf("archive.eclipse.org") > 0) {
         action = "delete";
       }
         var c = confirm("Are you sure you would like to "+ action +" the selected item(s)?");