1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00
Mstdn/renderer/index.ts

12 lines
382 B
TypeScript

import {Config, Account} from '../main/config';
import * as Ipc from './ipc';
import setupKeymaps from './key_handler';
import PluginsLoader from './plugins';
Ipc.on('mstdn:config', (c: Config, a: Account) => {
const loader = new PluginsLoader(c, a);
loader.loadAfterAppPrepared();
setupKeymaps(c, a);
document.title = `${document.title} @${a.name}@${a.host}`;
});