mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
without_activation -> activate
This commit is contained in:
@@ -1 +1,17 @@
|
||||
module.exports = process.atomBinding('shell');
|
||||
'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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user