Hello, I have the following javascript class
class MinhaClasse {
static list() {
return fetch('/api/endPoint', {
method: 'GET',
headers: {
'Authorization': Auth.getBasic()
}
})
}
}
When inside the web worker I call MinhaClasse
it is undefined! how can I inject it into the worker?