Execute oxfmt (#1166)
Ran pnpm oxfmt . This should get the web repo aligned so that we can better enforce oxfmt going forward.
This commit is contained in:
@@ -20,7 +20,9 @@ export const subscribeAll = (device: Device, connection: MeshDevice) => {
|
||||
connection.events.onRoutingPacket.subscribe((routingPacket) => {
|
||||
switch (routingPacket.data.variant.case) {
|
||||
case "errorReason": {
|
||||
if (routingPacket.data.variant.value === Protobuf.Mesh.Routing_Error.NONE) {
|
||||
if (
|
||||
routingPacket.data.variant.value === Protobuf.Mesh.Routing_Error.NONE
|
||||
) {
|
||||
return;
|
||||
}
|
||||
console.info(`Routing Error: ${routingPacket.data.variant.value}`);
|
||||
@@ -90,10 +92,12 @@ export const subscribeAll = (device: Device, connection: MeshDevice) => {
|
||||
// onMeshPacket → lastHeard / snr per-node updates are handled by the SDK
|
||||
// NodesClient.
|
||||
|
||||
connection.events.onClientNotificationPacket.subscribe((clientNotificationPacket) => {
|
||||
device.addClientNotification(clientNotificationPacket);
|
||||
device.setDialogOpen("clientNotification", true);
|
||||
});
|
||||
connection.events.onClientNotificationPacket.subscribe(
|
||||
(clientNotificationPacket) => {
|
||||
device.addClientNotification(clientNotificationPacket);
|
||||
device.setDialogOpen("clientNotification", true);
|
||||
},
|
||||
);
|
||||
|
||||
connection.events.onNeighborInfoPacket.subscribe((neighborInfo) => {
|
||||
device.addNeighborInfo(neighborInfo.from, neighborInfo.data);
|
||||
|
||||
Reference in New Issue
Block a user