当前位置: 动力学知识库 > 问答 > 编程问答 >

Crossrider 1000 bytes per key, error about appAPI.db.get, which I do not use

问题描述:

The Crossrider API on firefox does not update my view when I click the browser popup button, however in chrome it works fine. I have tried removing and installing the extension multiple times with no luck.

I got the console error in firefox as:

<Warning: appAPI.db storage is limited to 1000 bytes per key. For larger values please use appAPI.db.async Function-name: appAPI.db.set : key=CrossriderNotifier_css>

My code in popup.html evaluates in Chrome, however does not in Firefox.

What am I doing wrong?

Thanks

网友答案:

First and foremost, you haven't done anything wrong.

The message relates to legacy code in the Notifications plugin and some relatively recent routines we added to assist users identify issues with their extension. In general, the message is just a warning and as long as the key does not exceed the 1000 bytes limit (which this plugin does not) then the message can be safely ignored.

However, for your own code we recommend using the async database for any data other than simple configuration data.

[Disclosure: I am a Crossrider employee]

分享给朋友:
您可能感兴趣的文章:
随机阅读: