79423918

Date: 2025-02-08 21:16:02
Score: 1
Natty:
Report link

I would update comment from Rickfdalton, so the latest up to date version for executeScript will look like

 const fromPageLocalStore = await chrome.scripting.executeScript({ 
   target: { tabId: tab.id }, 
   function: (key) => localStorage[key], 
   args : [ key ],
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: D. Valkovyi