Skip to content

Commit

Permalink
fix: FIRESDK-31 returned response from Lifecycle.ready method (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinshahfws authored Jan 18, 2023
1 parent 2f2bcc3 commit b1dd82b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/template/js/sdk/Lifecycle/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ export const store = {
}

async function ready() {
let readyRes;
await prioritize('Lifecycle', (event, value) => {
store._current = event
})
await Transport.send('lifecycle', 'ready', {})
readyRes =await Transport.send('lifecycle', 'ready', {})
setTimeout(_ => {
logReady()
})
return readyRes
}

/* ${METHODS} */
Expand Down

0 comments on commit b1dd82b

Please sign in to comment.