Files
AFFiNE/packages/frontend/hosts/web/desktop/index.html
T
DarkSky 44c504176f fix(web): Restore HTML preview wheel input under strict CSP
Move Desktop startup to a module and read fonts and workers from its manifest. Allow the HTML preview wheel bridge by hash on both hosts. Check the hash against the source and verify that Chromium returns wheel input to the canvas.
2026-12-03 15:26:07 +09:00

40 lines
1.1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self' 'wasm-unsafe-eval' 'sha256-Wj52by3APtAVrFx15WjOaf+NMvWUDCTxnHjS5M1qQdk='; worker-src 'self' blob:; frame-src blob: about:; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self'; base-uri 'none'; object-src 'none'"
/>
<title>AFFiNE Desktop</title>
<link rel="icon" href="data:," />
<style>
html,
body {
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
canvas {
display: block;
width: 100vw;
height: 100vh;
}
#embed-layer {
position: fixed;
inset: 0;
pointer-events: none;
}
</style>
</head>
<body>
<div id="embed-layer"></div>
<script id="affine-desktop-manifest" type="application/json">
{}
</script>
<script type="module" src="/desktop/boot.js"></script>
</body>
</html>