From 3f59593ebe8343f9ccb9a294c4913aeb04ec882b 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 3bc92ec..c5e7b80 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -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")) { -- 1.7.10.2