healthCheck(); function healthCheck() { chrome.extension.sendMessage({method: "healthCheck"}, function(ok) { if (ok === undefined) { // Chrome is starting up healthCheck(); } else if (!ok && confirm(t("dbError"))) { window.open("http://userstyles.org/dberror"); } }); }