Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -56,7 +56,7 @@ async function waitForRestore () {
|
||||
const [error, result] = await provisionModel.status();
|
||||
if (error) {
|
||||
setTimeout(waitForRestore, 5000);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
if (!result.restore.active) {
|
||||
@@ -326,7 +326,7 @@ watchEffect(() => {
|
||||
|
||||
onMounted(async () => {
|
||||
const [error, status] = await provisionModel.status();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
if (redirectIfNeeded(status, 'restore')) return; // redirected to some other view...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user