mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-22 11:07:09 +01:00
Update preview.ts
This commit is contained in:
parent
f4863524d7
commit
5c0ce01dbd
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,8 @@ import { commonHandlers, onUnhandledRequest } from './mocks.js';
|
||||||
import themes from './themes.js';
|
import themes from './themes.js';
|
||||||
import '../src/style.scss';
|
import '../src/style.scss';
|
||||||
import { DI } from '../src/di.js';
|
import { DI } from '../src/di.js';
|
||||||
|
import { url } from '../src/config.js';
|
||||||
|
import { MediaProxy } from '../../frontend-shared/js/media-proxy.js';
|
||||||
|
|
||||||
const appInitialized = Symbol();
|
const appInitialized = Symbol();
|
||||||
|
|
||||||
|
@ -79,6 +81,7 @@ queueMicrotask(() => {
|
||||||
}
|
}
|
||||||
app[appInitialized] = true;
|
app[appInitialized] = true;
|
||||||
app.provide(DI.serverMetadata, {}); // TODO
|
app.provide(DI.serverMetadata, {}); // TODO
|
||||||
|
app.provide(DI.mediaProxy, new MediaProxy({}, url));
|
||||||
loadTheme(applyTheme);
|
loadTheme(applyTheme);
|
||||||
components(app);
|
components(app);
|
||||||
directives(app);
|
directives(app);
|
||||||
|
|
Loading…
Reference in a new issue