This commit is contained in:
Vanessa 2023-04-22 19:07:57 +08:00
parent b363ccfc0f
commit a5c21e3c09

View file

@ -41,7 +41,7 @@ export const kernelError = () => {
disableClose: true,
title: `💔 ${window.siyuan.languages.kernelFault0} <small>v${Constants.SIYUAN_VERSION}</small>`,
width: isMobile() ? "92vw" : "520px",
content: `<div id="errorLog" class="b3-dialog__content">
content: `<div class="b3-dialog__content">
<div class="ft__breakword">
<div>${window.siyuan.languages.kernelFault1}</div>
<div class="fn__hr"></div>
@ -50,6 +50,7 @@ export const kernelError = () => {
</div>
</div>`
});
dialog.element.id = 'errorLog'
const restartElement = dialog.element.querySelector(".b3-button");
if (restartElement) {
restartElement.addEventListener("click", () => {