Skip to content

Commit 37a6cd1

Browse files
committed
Update echo.ts
1 parent 9a98c19 commit 37a6cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/laravel-echo/src/echo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default class Echo<T extends keyof Broadcaster> {
182182
registerInterceptors(): void {
183183
// TODO: This package is deprecated and we should remove it in a future version.
184184
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
185-
if (Vue?.http) {
185+
if (typeof Vue !== "undefined" && Vue?.http) {
186186
this.registerVueRequestInterceptor();
187187
}
188188

0 commit comments

Comments
 (0)