I have this code at the moment:
async function updateAddons(state) {
const themeSyncAddons = await new Promise((resolve, reject) => chrome.storage.sync.get(['themeSyncAddons'], result => resolve(result.themeSyncAddons)));
};
And I want to get variable themeSyncAddons
in normal code (not async), and execute code with this var. Is it possible?