12 lines
283 B
JavaScript
12 lines
283 B
JavaScript
healthCheck();
|
|
|
|
function healthCheck() {
|
|
chrome.runtime.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");
|
|
}
|
|
});
|
|
}
|