В локальном / синхронизированном хранилище никогда не будет записи c, даже если отображается предупреждение.
script. js:
document.getElementById('save').onclick = function() {
chrome.storage.local.set({"ad": "1"}, function() {
console.log('Value is set to ' + value);
});
alert('Boop');
};`
манифест:
"options_ui": {
"page": "options.html",
"chrome_style": true
},
"permissions": [
"storage"
],
html:
<script src="script.js"></script>
<div id="main" style="padding:30px">
<p>Enter your name: <input id="name"></p>
<input id="save" type="button" value="SAVE">
</div>
У кого-нибудь есть идеи?