Skip to content

Commit 71ef30b

Browse files
hansonrhansonr
authored andcommitted
temporarily flagging EBI dbfetch/dbfetch to require server proxy
1 parent 7b328b6 commit 71ef30b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sources/net.sf.j2s.java.core/srcjs/js/j2sApplet.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,11 @@ if (!J2S._version)
840840

841841
J2S._isDirectCall = function(url) {
842842
for ( var key in J2S.db._DirectDatabaseCalls) {
843-
if (key.indexOf(".") >= 0 && url.indexOf(key) >= 0)
844-
return true;
843+
if (key.indexOf(".") >= 0 && url.indexOf(key) >= 0) {
844+
// hack because ebi is not returning ajax calls
845+
return url.indexOf(".ebi.ac.") < 0 || url.indexOf("dbfetch/dbfetch") < 0;
846+
847+
}
845848
}
846849
return false;
847850
}

0 commit comments

Comments
 (0)