electron/atom/common/api/lib/shell.js
2016-02-17 08:56:58 -08:00

17 lines
440 B
JavaScript

'use strict';
const bindings = process.atomBinding('shell');
exports.beep = bindings.beep;
exports.moveItemToTrash = bindings.moveItemToTrash;
exports.openItem = bindings.openItem;
exports.showItemInFolder = bindings.showItemInFolder;
exports.openExternal = (url, options) => {
var activate = true;
if (options != null && options.activate != null) {
activate = !!options.activate;
}
bindings._openExternal(url, activate);
}