add points

This commit is contained in:
polv committed 2026-03-17 18:04:04 +07:00
1 parent b3993abeb5
commit c33cc38902
6 files changed
+283 -7

No files matched your search

+8
View File
@@ -3,5 +3,13 @@ const { Webview } = require("webview-nodejs");
let w = new Webview();
w.title("zhdiary");
w.size(1920, 1280);
w.init(/* js */ `
document.addEventListener('click', (ev) => {
if (ev.target.matches('a')) {
const href = ev.target.href || '';
if (href.startsWith('https://')) ev.preventDefault();
}
})
`);
w.navigate("http://localhost:50156");
w.show();