JAL-3032 reinstate methods now available in SwingJS
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 19 Nov 2018 15:13:19 +0000 (15:13 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 19 Nov 2018 15:13:19 +0000 (15:13 +0000)
src/jalview/ext/ensembl/EnsemblRestClient.java

index fa626cb..5ebfcbf 100644 (file)
@@ -345,12 +345,9 @@ abstract class EnsemblRestClient extends EnsemblSequenceFetcher
     connection.setDoInput(true);
     connection.setDoOutput(multipleIds);
 
-    if (!Jalview.isJS()) 
-    {
-      connection.setUseCaches(false);
-      connection.setConnectTimeout(CONNECT_TIMEOUT_MS);
-      connection.setReadTimeout(readTimeout);
-    }
+    connection.setUseCaches(false);
+    connection.setConnectTimeout(CONNECT_TIMEOUT_MS);
+    connection.setReadTimeout(readTimeout);
 
     if (multipleIds)
     {