Skip to content

Commit beaad5c

Browse files
authored
fix: Do not use undefined this.log (#22642)
1 parent 59c4514 commit beaad5c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

vaadin-dev-server/src/main/frontend/vaadin-dev-tools.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -644,13 +644,8 @@ export class VaadinDevTools extends LitElement {
644644
this.frontendStatus = ConnectionStatus.UNAVAILABLE;
645645
this.javaStatus = ConnectionStatus.UNAVAILABLE;
646646
if (!this.conf.token) {
647-
console.error('Dev tools functionality denied for this host.');
648-
this.log(
649-
MessageType.LOG,
650-
'See Vaadin documentation on how to configure devmode.hostsAllowed property.',
651-
undefined,
652-
'https://vaadin.com/docs/latest/configuration/properties#properties',
653-
undefined
647+
console.error(
648+
'Dev tools functionality denied for this host. See Vaadin documentation on how to configure devmode.hostsAllowed property: https://vaadin.com/docs/latest/configuration/properties#properties'
654649
);
655650
return;
656651
}

0 commit comments

Comments
 (0)