![]() ![]() ![]() Let result3 = await getVarFromLocalStorage("test")Ĭonsole. get test variable from localstorage (should be 77) This browser does not support the video element. Let result2 = await setVarInLocalStorage("test", 77)Ĭonsole.log("result2 resolve = " + result2) Open a new tab in Chrome, then click the Customize Chrome button located at the bottom right corner of the page. Let result1 = await getVarFromLocalStorage("test")Ĭonsole.log("result1 resolve = " + result1) get test variable from localstorage (should be 3) Programs and services offered at HealthFirst are designed to meet the health care needs of everyone in our community regardless of their ability to pay. Let result = await setVarInLocalStorage("test", 3)Ĭonsole.log("result resolve = " + result) Made from light natural mango, six drawers plus dual drop-down door fronts feature natural cane, for a textural look thats right on. Right now for testing purposes my main code runs at the start of the extension: //once popup window is fully loaded So I'm trying to write my get / set methods in promise functions to ensure that they are only returned once the action has been successfully completed, but I'm still getting some issues. Initially I was running into some timing issues where getting a value after I set it wouldn't be correct. I'm trying to do this with chrome's localstorage get/set methods. Hello I'm making a chrome extension that will communicate with a webserver to log a user in, so I'm going to need to store the auth token locally in the chrome app, so you can stay logged in even if you close the extension. ![]()
0 Comments
Leave a Reply. |