function saveOptions() {
// bunch of code here to save the settings
setTimeout( "alert('saved')", 5000); // attempt 1
setTimeout( function() { alert('saved'); }, 5000); // attempt 2
}
Sorry, title should be "setTimeout not triggering"
Sorry, title should be "setTimeout not triggering"
--To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/Ey2c0sCxgRgJ.
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
function save_options() {//save settings code herelocalStorage["setting1"] = "value";
setTimeout( function() { alert('saved'); }, 5000);}
document.getElementById("save_button").addEventListener("click", save_options, false);
<button id="save_button"> Save </button>
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/D5qiANFgGYEJ.
Ya, someone emailed me directly and told me about that. All fixed now. Here is the code that fixed the issue. I appreciated everyones help on this :)
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/D5qiANFgGYEJ.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.