fix(panel): use native browser downloads for standalone web exports

- Gate /api/export-file and /api/reveal-file calls behind isHostEmbeddedWebview so standalone browser sessions invoke showSaveFilePicker or Blob downloads directly without expiring user activation
- Reject /api/export-file, /api/reveal-file, and __exportFileAction requests in standalone-server.mjs so ssh -L tunnels and local reverse proxies never write files or spawn xdg-open on the server host
This commit is contained in:
fish
2026-11-24 13:53:12 +09:00
parent 275955c37f
commit e4e597931d
6 changed files with 107 additions and 54 deletions
+2 -2
View File
@@ -4,11 +4,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>用量监控</title>
<link rel="stylesheet" href="/styles.css?v=1795491893051">
<link rel="stylesheet" href="/styles.css?v=1795495980631">
<script src="/preload.js"></script>
</head>
<body>
<div id="app-root"></div>
<script src="/app.js?v=1795491893051"></script>
<script src="/app.js?v=1795495980631"></script>
</body>
</html>