简体   繁体   English

browser.storage.local.set似乎没有任何作用

[英]browser.storage.local.set doesn't seem to have any effect

I'm developing a Firefox extension. 我正在开发Firefox扩展。 It's loaded temporarily (via about:debugging) and I'm trying to use the local storage API. 它是临时加载的(通过about:debugging),我正在尝试使用本地存储API。 The following screenshots are of the extension's debug console. 以下屏幕截图是该扩展程序的调试控制台的屏幕截图。

First I set a value: 首先,我设置一个值:

在此处输入图片说明

But it doesn't seem to be there: 但它似乎不存在:

在此处输入图片说明

I do have the "storage" permission in my manifest and my extension has an ID. 我的清单中确实具有“存储”权限,并且扩展名具有ID。

The localStorage in the browser is not the same as the storage.local for an extension. 浏览器中的localStorage与扩展名的storage.local Instead, try getting the value once it's set and log it from there. 相反,尝试在设置值后获取该值,然后从那里记录下来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 jQuery .toggle()+ addClass()似乎没有达到预期的效果 - jQuery .toggle() + addClass() doesn't seem to have desired effect Servlet 中的 RequestDispatcher.forward(req, res) 没有任何效果 - RequestDispatcher .forward(req, res) in Servlet doesn't have any effect jQuery自动完成必须匹配没有任何影响 - jQuery Autocomplete mustmatch doesn't have any effect 防止默认(); 对放置事件没有任何影响 - preventDefault(); doesn´t have any effect on a drop event 在angularjs测试中使用element.triggerHandler()进行粘贴和按键事件似乎没有效果 - Using element.triggerHandler() in angularjs tests for paste and keypress events doesn't seem to have an effect 为什么 useEffect 不从本地存储设置项目? - Why useEffect doesn't set items from local storage? 无法在iPhone Safari浏览器上设置本地存储 - Cannot set local storage on iphone safari browser 当浏览器后退按钮没有达到预期效果时该怎么办 - What to do when browser back button doesn't have the intended effect 我似乎无法使本地存储正常工作 - I can't seem to get local storage working 为什么setter方法对我的JavaScript对象中的其他变量没有任何影响? - Why doesn't the setter method have any effect on other variables in my JavaScript object?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM