catch global error and display on top of page
This commit is contained in:
@@ -103,7 +103,7 @@ const init = async () => {
|
||||
await init();
|
||||
} catch (err) {
|
||||
const $err = document.createElement("div");
|
||||
$err.innerText = `KISS-Translator Error: ${err.message}`;
|
||||
$err.innerText = `KISS-Translator: ${err.message}`;
|
||||
$err.style.cssText = "background:red; color:#fff; z-index:10000;";
|
||||
document.body.prepend($err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user