Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -54,7 +54,7 @@ async function waitForDnsSetup () {
|
||||
const [error, result] = await provisionModel.status();
|
||||
if (error) {
|
||||
setTimeout(waitForDnsSetup, 5000);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
if (!result.setup.active) {
|
||||
@@ -136,7 +136,7 @@ onMounted(async () => {
|
||||
const search = decodeURIComponent(window.location.search).slice(1).split('&').map(function (item) { return item.split('='); }).reduce(function (o, k) { o[k[0]] = k[1]; return o; }, {});
|
||||
|
||||
const [error, status] = await provisionModel.status();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
if (redirectIfNeeded(status, 'setup')) return; // redirected to some other view...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user