When I run this function
function loadProfiles() {
chrome.storage.local.set({advanced: data.advanced });
chrome.storage.local.get(‘advanced’, gotItem);
}
the scrit works with no problems.
When I run this
function loadProfiles() {
chrome.storage.local.get(‘advanced’, gotItem);
}
the script halts in debugger (It does not continue to run or execute the rest of the code). The item “advanced” does not exist yet and I need to find a way how to do a test if the item “advanced” exist in the database. This way as it is bug and the script will finish early.