After 9878ab4 moved file-preview state into FilesTab, App.svelte still
references previewItem/previewContent/previewLoading/previewError in
two places that were not migrated:
- openTrashPreview() (trash file preview flow, ~line 1334)
- {#if previewItem} <FilePreviewModal ...> block (~line 3563)
Without these 'let' bindings, vite-plugin-svelte warned
'previewError is not defined' and the Svelte runtime threw a
ReferenceError on first render, leaving the WebView empty.
Restore the four 'let' declarations in App.svelte (kept here because
trash lives outside FilesTab) and rebuild the embedded frontend bundle.
29 lines
988 B
HTML
29 lines
988 B
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/app-icons/icon_16x16.png" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/assets/app-icons/icon_32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="64x64" href="/assets/app-icons/icon_64x64.png" />
|
|
<link rel="icon" type="image/png" sizes="128x128" href="/assets/app-icons/icon_128x128.png" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Верстак</title>
|
|
<style>
|
|
/* Critical reset — no white borders, full viewport */
|
|
html, body, #app {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background: #13131f;
|
|
}
|
|
</style>
|
|
<script type="module" crossorigin src="/assets/main-QJp1UtIq.js"></script>
|
|
<link rel="stylesheet" crossorigin href="/assets/main-Bl-yCbt2.css">
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
</body>
|
|
</html>
|