From bfdcc5cdfa927c157f7c06ad688582ddce776f7d Mon Sep 17 00:00:00 2001 From: aiongg <67543387+aiongg@users.noreply.github.com> Date: Thu, 5 Nov 2026 11:55:08 +0000 Subject: [PATCH] Apply review fixes - packaging/web/README.md - apps/deckcraft-web/src/host.rs --- apps/deckcraft-web/src/host.rs | 2 +- packaging/web/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/deckcraft-web/src/host.rs b/apps/deckcraft-web/src/host.rs index b65d46537..616b66094 100644 --- a/apps/deckcraft-web/src/host.rs +++ b/apps/deckcraft-web/src/host.rs @@ -27,7 +27,7 @@ //! - Export (PDF, pictures, outline, GIF, handouts, a Save As type that isn't a presentation) //! and Print: `false`. They are copies; the presentation's file stays the same. //! - `deckcraft:dirty` whenever unsaved changes appear or go away, `deckcraft:failed` when the -//! app couldn't start. +//! app couldn't start or refused a file over 2 GiB. //! //! In host mode the app starts with an empty presentation instead of the sample, which gives way to //! the first file the host sends; the host guards leaving the page, and `?author=` names the user diff --git a/packaging/web/README.md b/packaging/web/README.md index 19cdaedfa..05b81fb0d 100644 --- a/packaging/web/README.md +++ b/packaging/web/README.md @@ -90,7 +90,7 @@ Messages are plain objects with a `type`: | `deckcraft:open` | from the page | `name` (a bare file name, such as `Talk.pptx`), `bytes` (`ArrayBuffer` or `Uint8Array`). Opens like File › Open: a presentation (.pptx, .potx, .ppsx, .deckcraft) has that name as its file; an outline (.txt, .md, .rtf), a file sent without a name and a damaged file open untitled. | | `deckcraft:save` | to the page | `name`, `saveAs`, `bytes` (a transferred `ArrayBuffer`), for every file DeckCraft would otherwise download. The page stores it. | | `deckcraft:dirty` | to the page | `dirty`, whenever unsaved changes appear or go away. | -| `deckcraft:failed` | to the page | `error`, when the app couldn't start (no WebGPU or WebGL2). | +| `deckcraft:failed` | to the page | `error`, when the app couldn't start (no WebGPU or WebGL2) or refused a file over 2 GiB. | `saveAs` says whether the file becomes the presentation's file, as on the desktop: