Merge branch 'feature/JAL-3144noJTree' into
[jalview.git] / src / jalview / fts / service / pdb / PDBFTSRestClient.java
index 301cb16..c0ca3a5 100644 (file)
@@ -20,6 +20,7 @@
  */
 package jalview.fts.service.pdb;
 
+import jalview.bin.Jalview;
 import jalview.datamodel.SequenceI;
 import jalview.fts.api.FTSData;
 import jalview.fts.api.FTSDataColumnI;
@@ -125,8 +126,7 @@ public class PDBFTSRestClient extends FTSRestClient
       // different from the ones in Java yet still allow this to be correct for Java
       Client client;
       Class<ClientResponse> clientResponseClass;
-      if (/** @j2sNative true || */
-      false)
+      if (Jalview.isJS())
       {
         // JavaScript only -- coerce types to Java types for Java
         client = (Client) (Object) new jalview.javascript.web.Client();