Skip to content

Commit

Permalink
update due to removed deprecated executeJavaScript call in Vaadin24
Browse files Browse the repository at this point in the history
  • Loading branch information
kreotak authored and paodb committed Nov 15, 2023
1 parent 3b30837 commit 8ee97b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void setI18n(RichTextEditorI18n i18n) {
JsonObject i18nObject = (JsonObject) JsonSerializer
.toJson(this.i18n);
for (String key : i18nObject.keys()) {
ui.getPage().executeJavaScript(
ui.getPage().executeJs(
"$0.set('i18n." + key + "', $1)", getElement(),
i18nObject.get(key));
}
Expand All @@ -120,7 +120,7 @@ public void setToolbarButtonsVisibility(
runBeforeClientResponse(ui -> {
String str = toolbarButtonsVisibility.toString();
str = str.replaceAll("=", ":");
ui.getPage().executeJavaScript("setToolbarButtons($0, $1)",
ui.getPage().executeJs("setToolbarButtons($0, $1)",
getElement(), str);
});
}
Expand Down

0 comments on commit 8ee97b6

Please sign in to comment.