JAL-3757 JAL-3689 use AppletFormat.checkProtocol to resolve startup file’s retrieval...
[jalview.git] / src / jalview / bin / Jalview.java
index 3bc92ec..c5e7b80 100755 (executable)
@@ -779,12 +779,7 @@ public class Jalview
         Cache.removeProperty("STARTUP_FILE");
       }
 
-      protocol = DataSourceType.FILE;
-
-      if (HttpUtils.startsWithHttpOrHttps(file))
-      {
-        protocol = DataSourceType.URL;
-      }
+      protocol = AppletFormatAdapter.checkProtocol(file);
 
       if (file.endsWith(".jar"))
       {