forked from Blendman974/faceclaw
First-pass EvenHub compatibility layer
This commit is contained in:
1 parent
d7d12afcaa
commit
5d29d91133
19 files changed
+1668
-22
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { type AppContext, type AppDefinition } from "../app-definition";
|
||||
import { openEvenHubPackage } from "../evenhub";
|
||||
import {
|
||||
createFilesAppWindow,
|
||||
createImageDocumentWindow,
|
||||
@@ -43,6 +44,11 @@ const filesApp: AppDefinition = {
|
||||
...options,
|
||||
openDocumentWindow: (title, text) => openTextDocumentWindow(ctx, title, text),
|
||||
openImageWindow: (title, path) => openImageDocumentWindow(ctx, title, path),
|
||||
openEhpkApp: (path) => {
|
||||
void openEvenHubPackage(ctx, path).catch((error) => {
|
||||
ctx.appendLog(`evenhub launch failed: ${error}`);
|
||||
});
|
||||
},
|
||||
}),
|
||||
),
|
||||
// A document arriving via Android's Share intent opens as its own window.
|
||||
|
||||
Reference in new issue
Block a user