Skip to content

Commit 37bab14

Browse files
authored
fix: fix web push compilation error (#17952)
1 parent 64b2aba commit 37bab14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎flow-tests/test-webpush/src/main/java/com/vaadin/flow/webpush/WebPushView.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ public WebPushView() {
5757

5858
subscribe = new NativeButton("Subscribe", event -> webPush
5959
.subscribe(event.getSource().getUI().get(), result -> {
60-
addLogEntry("Subscribed " + result.endpoint);
60+
addLogEntry("Subscribed " + result.endpoint());
6161
subscription = result;
6262
}));
6363
subscribe.setId(SUBSCRIBE_ID);
6464

6565
unsubscribe = new NativeButton("Unsubscribe", event -> webPush
6666
.unsubscribe(event.getSource().getUI().get(), result -> {
67-
String endpoint = result != null ? result.endpoint
67+
String endpoint = result != null ? result.endpoint()
6868
: "<unknown>";
6969
addLogEntry("Unsubscribed " + endpoint);
7070
subscription = null;

0 commit comments

Comments
 (0)