Chrome extension storage.sync.set in content script throws exception

后端 未结 3 996
旧时难觅i
旧时难觅i 2021-02-19 07:03

I have a weird issue that wasted too much time. I have content script that tries to read some data from the storage.sync API but it fails.

I\'ve added the storage permis

3条回答
  •  花落未央
    2021-02-19 07:57

    I had the same error and it was caused due to debugger stopping the flow of execution in the middle. Once I removed the debugger / breakpoints in my 'Content Script' and 'Background Script' and reloaded everything then I didn't see the error.

提交回复
热议问题