@@ -58,7 +58,7 @@ export const sendInitialHeartbeat = async (client: AWClient) => {
5858 const activeWindowTab = await getActiveWindowTab ( )
5959 const tabs = await getTabs ( )
6060 console . debug ( 'Sending initial heartbeat' , activeWindowTab )
61- heartbeat ( client , activeWindowTab , tabs . length )
61+ await heartbeat ( client , activeWindowTab , tabs . length )
6262}
6363
6464export const heartbeatAlarmListener =
@@ -68,7 +68,7 @@ export const heartbeatAlarmListener =
6868 if ( ! activeWindowTab ) return
6969 const tabs = await getTabs ( )
7070 console . debug ( 'Sending heartbeat for alarm' , activeWindowTab )
71- heartbeat ( client , activeWindowTab , tabs . length )
71+ await heartbeat ( client , activeWindowTab , tabs . length )
7272 }
7373
7474export const tabActivatedListener =
@@ -77,5 +77,5 @@ export const tabActivatedListener =
7777 const tab = await getTab ( activeInfo . tabId )
7878 const tabs = await getTabs ( )
7979 console . debug ( 'Sending heartbeat for tab activation' , tab )
80- heartbeat ( client , tab , tabs . length )
80+ await heartbeat ( client , tab , tabs . length )
8181 }
0 commit comments