New attachment storage system
This commit is contained in:
parent
273e1ccb15
commit
28664a606f
161 changed files with 2418 additions and 1562 deletions
12
app/main.ts
12
app/main.ts
|
@ -29,6 +29,7 @@ import {
|
|||
systemPreferences,
|
||||
Notification,
|
||||
safeStorage,
|
||||
protocol as electronProtocol,
|
||||
} from 'electron';
|
||||
import type { MenuItemConstructorOptions, Settings } from 'electron';
|
||||
import { z } from 'zod';
|
||||
|
@ -1823,6 +1824,17 @@ if (DISABLE_GPU) {
|
|||
app.disableHardwareAcceleration();
|
||||
}
|
||||
|
||||
// This has to run before the 'ready' event.
|
||||
electronProtocol.registerSchemesAsPrivileged([
|
||||
{
|
||||
scheme: 'attachment',
|
||||
privileges: {
|
||||
supportFetchAPI: true,
|
||||
stream: true,
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
// This method will be called when Electron has finished
|
||||
// initialization and is ready to create browser windows.
|
||||
// Some APIs can only be used after this event occurs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue