chrome.storage.sync.get(null, function(items) {
try {
if (chrome.runtime.lastError) {
console.warn(chrome.runtime.lastError.message);
} else {
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/bf139210-4ec1-4dfb-a528-f3a57cca6334%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
It's chrome.runtime.lastError
No error is thrown . I did a console.log(chrome.extension.lastError) in the callback of chrome.storage.sync.get() . By API the lastError should be defined in this scope .
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/ad4b3d25-a366-49e0-b3e4-d7e5f95d9644%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/bf139210-4ec1-4dfb-a528-f3a57cca6334%40chromium.org.
Ok , I didn't have time to post about it , but I gave it a few hours and the main conclusion is that JavaScript doesn't deserve being called a script language . Apparently code that appears afterwards can cause breakage now . Here's where I'm at : we have the function below . On the start of the extension onStartup (or onInstalled) calles startUp() , which calls mergeTabsFromSync() (everything till this point is perfect) , which calls update tabs from string list (after getting the string list of URLs from the sync storage) . Now - simply put - we call the function below for the first time and the very first console.log() shows that syncTabs is an array with zero elements. We go through hours of trial and error ,and we see that if the line "syncTabs.splice(s,1);" is commented out - the first console log actually returns the array passed as a parameter ('syncTabs') correctly . Now $@%$ what ?
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/77c468cb-24a2-412c-b477-cc9f09981b19%40chromium.org.