2

How can i save data to database from chrome app. I have tried with Local Storage which is inbuilt API of chrome app but it wont work for me as I have to manage a large data with chrome App. Basically i need to store data for my offline chrome app .

I have tried for local storage and tried to create logs in directory but it wont work for me

chrome.storage.local.set({dataList: dataList}, function () {
 // you can use strings instead of objects
 // if you don't  want to define default values
 chrome.storage.local.get('dataList',  async (result) => {
 console.log(result.dataList)
 let webHook = await $.post("http://localhost:3000", {}, dimensionObj);
        console.log(webHook); });
});
Ethan Vu
  • 2,911
  • 9
  • 25
ALOK VERMA
  • 97
  • 4

0 Answers0