Prepare for release
Some checks failed
Create Release on Tag Push / build (push) Has been cancelled

This commit is contained in:
MassiveBox 2025-04-05 23:23:45 +02:00
parent d8cc4f8caf
commit 0bc89f4a72
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
7 changed files with 48 additions and 22 deletions

21
public/webapp/error.html Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
body {
background-color: white;
color: black;
}
</style>
</head>
<body>
<p>It looks like an error occurred. You shouldn't be able to see this page.</p>
<p>No data has been deleted. Please excuse us for the inconvenience.</p>
<p>
Try reloading SiYuan, and if the error persists, open an issue at
<code>https://git.massive.box/massivebox/siyuan-jsdraw-plugin/issues</code>
or contact the developer directly via e-mail at <code>box@massive.box</code>
</p>
</body>
</html>

View file

@ -13,7 +13,7 @@
document.addEventListener('DOMContentLoaded', async () => {
const editLink = document.createElement('a');
editLink.href = getEditLink(path);
editLink.href = "./error.html";
document.body.appendChild(editLink);
const htmlContainer = document.createElement('div');