Closed nathanclevenger closed 2 years ago
We need to detect if the worker instance is new or if it's already running, so the same way we're creating an empty object for recentInteractions, we should also create a global variable:
let instanceId = undefined
We need to detect if the worker instance is new or if it's already running, so the same way we're creating an empty object for recentInteractions, we should also create a global variable: