2017-01-31 07:50:28 +01:00
|
|
|
const Launcher = require('../comp/launcher');
|
2016-04-19 21:19:08 +02:00
|
|
|
|
2017-01-31 07:50:28 +01:00
|
|
|
const AutoTypeEmitterFactory = {
|
2019-08-18 10:17:09 +02:00
|
|
|
create(callback) {
|
2017-01-31 23:09:35 +01:00
|
|
|
if (Launcher && Launcher.autoTypeSupported) {
|
2017-01-31 23:40:48 +01:00
|
|
|
const AutoTypeEmitter = require('./emitter/auto-type-emitter-' + Launcher.platform());
|
2017-01-31 23:09:35 +01:00
|
|
|
return new AutoTypeEmitter(callback);
|
2016-04-19 21:19:08 +02:00
|
|
|
}
|
2017-01-31 23:09:35 +01:00
|
|
|
return null;
|
2016-04-19 21:19:08 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = AutoTypeEmitterFactory;
|