I'm running a script with chrome.devtools.inspectedWindow.eval but I cannot call chrome.storage.sync. The chrome.storage.sync works fine in content script. Any suggestion about alternative solution would be very helpful.
$('.finish-button').on('click', () => {
// This one
chrome.storage.sync.set({ "elements": current_element }, function () {
alert("Done");
console.log(current_element);
});
})