Commit 9b840e86 authored by antoor's avatar antoor

Add the electron.shell API

添加shell API
parent 3498187c
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
'use strict'; 'use strict';
const electron = global.require('electron'); const electron = global.require('electron');
const shell = electron.shell;
const remote = electron.remote; const remote = electron.remote;
const ipcRenderer = electron.ipcRenderer; const ipcRenderer = electron.ipcRenderer;
...@@ -80,6 +81,7 @@ ipcRenderer.send('aproxy', { ...@@ -80,6 +81,7 @@ ipcRenderer.send('aproxy', {
aproxyuri: antSword['aproxyuri'] aproxyuri: antSword['aproxyuri']
}); });
antSword['shell'] = shell;
antSword['ipcRenderer'] = ipcRenderer; antSword['ipcRenderer'] = ipcRenderer;
antSword['CacheManager'] = CacheManager; antSword['CacheManager'] = CacheManager;
antSword['menubar'] = new Menubar(); antSword['menubar'] = new Menubar();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment