*/
package jalview.ext.ensembl;
+import jalview.bin.Jalview;
import jalview.io.DataSourceType;
import jalview.io.FileParse;
import jalview.util.StringUtils;
getRequestMimeType(multipleIds));
connection.setRequestProperty("Accept", getResponseMimeType());
- connection.setUseCaches(false);
connection.setDoInput(true);
connection.setDoOutput(multipleIds);
- connection.setConnectTimeout(CONNECT_TIMEOUT_MS);
- connection.setReadTimeout(readTimeout);
+ if (!Jalview.isJS())
+ {
+ connection.setUseCaches(false);
+ connection.setConnectTimeout(CONNECT_TIMEOUT_MS);
+ connection.setReadTimeout(readTimeout);
+ }
if (multipleIds)
{