add points
This commit is contained in:
1 parent
b3993abeb5
commit
c33cc38902
6 files changed
+283
-7
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user