Skip to content

Commit 736ca5b

Browse files
esaruohoclaude
andcommitted
fix JSNI .catch() syntax for GWT compatibility
Use bracket notation ["catch"] instead of .catch() since catch is a Java reserved word that GWT's JSNI parser rejects. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 55f3ee7 commit 736ca5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/lushprojects/circuitjs1/client/ImportFromSchematicDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ native void callGeminiApi(String base64DataUrl, String mimeType, String apiKey,
211211
}
212212
@com.lushprojects.circuitjs1.client.ImportFromSchematicDialog::onAnalysisComplete(Ljava/lang/String;)(text);
213213
})
214-
.catch(function(err) {
214+
["catch"](function(err) {
215215
@com.lushprojects.circuitjs1.client.ImportFromSchematicDialog::onAnalysisError(Ljava/lang/String;)(err.message || "Network error. Check connection and retry.");
216216
});
217217
}-*/;

0 commit comments

Comments
 (0)