i trying retrieve tagraw storage. link
i put breakpoints in background page, can't see go in code.
thanks looking. appreciate it!
------------popup.js--------------
handleclick_: function () { var tagraw=""; chrome.storage.sync.get({ likesname: 'yourname' }, function(items) { tagraw= items.likesname; }); }
----------------------popup.html-------------------
<html> <body> <div role="main"> <form> <select id="timeframe"> <option value="mustpk">-pick-</option> </select> <button id="button">send</button> </form> </div> <script src="popup.js"></script>
--------------options.js--------------------
function save_options() { var likesname = document.getelementbyid('likename').value; chrome.storage.sync.set({ likesname: likesname }, function() { settimeout(function() { status.textcontent = ''; }, 750); }); }
--instead of using chrome.storage switched instead use new html5 storage.
//to save html5 storage localstorage.setitem("likename", likesname); //to retrieve html5 storage. var tagraw= localstorage.getitem("likename");