2017-04-17 18:40:55 +09:00
|
|
|
import {Config, Account} from '../main/config';
|
2017-04-16 02:27:06 +09:00
|
|
|
import * as Ipc from './ipc';
|
2017-04-20 11:47:44 +09:00
|
|
|
import setupKeymaps from './key_handler';
|
2017-04-21 16:50:14 +09:00
|
|
|
import loadPlugins from './plugins';
|
|
|
|
import log from './log';
|
2017-04-17 18:40:55 +09:00
|
|
|
|
2017-04-18 20:29:07 +09:00
|
|
|
Ipc.on('mstdn:config', (c: Config, a: Account) => {
|
2017-04-21 16:50:14 +09:00
|
|
|
const plugins = loadPlugins(c, a);
|
|
|
|
log.info('Loaded plugins:', plugins);
|
2017-04-20 11:47:44 +09:00
|
|
|
setupKeymaps(c, a);
|
2017-04-19 18:07:12 +09:00
|
|
|
document.title = `${document.title} @${a.name}@${a.host}`;
|
2017-04-16 04:14:58 +09:00
|
|
|
});
|