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

13 lines
407 B
TypeScript

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