Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-lippert committed Oct 31, 2023
1 parent 35b1b6e commit cb5d711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class State {
const meta = Object.values(state.meta)[0]
const callback = meta?.callback || state.configuration.flatMap((c) => c.config).reduce((acc, c) => ({ ...acc, ...c }), {}).callback
if (callback) {
let callbacks = Array.isArray(callback) ? callback : [callback]
const callbacks = Array.isArray(callback) ? callback : [callback]
for (let i = 0; i < callbacks.length; i++) {
const url = typeof callbacks[i] === 'string' || callbacks[i] instanceof String ? callbacks[i] : callbacks[i].url
const init = callbacks[i].init || meta?.init || {}
Expand Down

0 comments on commit cb5d711

Please sign in to comment.