Skip to content

Commit ded84d7

Browse files
committed
use health enum (and local bundlE)
1 parent e1d3baf commit ded84d7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,9 @@
796796
createLightNode,
797797
ReliableChannelEvent,
798798
ReliableChannel,
799-
HealthStatus
800-
} from 'https://unpkg.com/@waku/[email protected]/bundle/index.js';
799+
HealthStatus,
800+
WakuEvent
801+
} from './waku-sdk-bundle.js';
801802

802803
// Define protobuf schema
803804
const protoSchema = `
@@ -1361,7 +1362,7 @@
13611362
if (!this.node || !this.node.events) return;
13621363

13631364
// Listen for health status changes
1364-
this.node.events.addEventListener('waku:health', (event) => {
1365+
this.node.events.addEventListener(WakuEvent.Health, (event) => {
13651366
this.handleHealthChange(event.detail);
13661367
});
13671368
}

0 commit comments

Comments
 (0)