From 8d5cf09fa18cde0cb0d0362adc64571be5b08dc6 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 24 Sep 2020 14:36:17 +0100 Subject: [PATCH] =?utf8?q?JAL-3757=20JAL-3689=20use=20AppletFormat.checkProt?= =?utf8?q?ocol=20to=20resolve=20startup=20file=E2=80=99s=20retrieval=20proto?= =?utf8?q?col=20(sorry=20@benzoid=20for=20finessing=20you=20!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/bin/Jalview.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 7ad7320..3a238bb 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -691,12 +691,7 @@ public class Jalview jalview.bin.Cache.removeProperty("STARTUP_FILE"); } - protocol = DataSourceType.FILE; - - if (HttpUtils.startsWithHttpOrHttps(file)) - { - protocol = DataSourceType.URL; - } + protocol = AppletFormatAdapter.checkProtocol(file); if (file.endsWith(".jar")) { -- 1.7.10.2