Add `OS` module

pull/1/head
Daniel Gasienica 7 years ago
parent dbc242c37f
commit 91daedd619

@ -0,0 +1,10 @@
/* eslint-env node */
exports.isMacOS = () =>
process.platform === 'darwin';
exports.isLinux = () =>
process.platform === 'linux';
exports.isWindows = () =>
process.platform === 'win32';

@ -101,6 +101,7 @@
// ES2015+ modules
window.Signal = window.Signal || {};
window.Signal.OS = require('./js/modules/os');
window.Signal.Types = window.Signal.Types || {};
window.Signal.Types.Attachment = require('./js/modules/types/attachment');
window.Signal.Types.Message = require('./js/modules/types/message');

Loading…
Cancel
Save