lundi 6 juin 2016

who can kindly tell me why I can't use sessionStorage in SharedWorker?

I need to use shared worker to get some status from host, So I use sharedworker in my code.

I want to set sessionStorage in the worker js after it get status from my host like this sessionStorage.setItem('key', 'value'); But after using it, the worker js seems blocked and without any result. when I comment it ( sessionStorage.setItem('key', 'value') ) out, it seems works.

So, Who can kindly tell me is it possible to set sessionStorage in a shared worker? Many thanks in advance!




Aucun commentaire:

Enregistrer un commentaire