2015-05-05 15:21:45 +00:00
|
|
|
healthCheck();
|
|
|
|
|
|
|
|
function healthCheck() {
|
2016-01-30 23:08:10 +00:00
|
|
|
chrome.runtime.sendMessage({method: "healthCheck"}, function(ok) {
|
2015-05-05 15:21:45 +00:00
|
|
|
if (ok === undefined) { // Chrome is starting up
|
|
|
|
healthCheck();
|
|
|
|
} else if (!ok && confirm(t("dbError"))) {
|
2013-06-26 04:25:04 +00:00
|
|
|
window.open("http://userstyles.org/dberror");
|
|
|
|
}
|
2015-05-05 15:21:45 +00:00
|
|
|
});
|
|
|
|
}
|