parent
7d38384bdd
commit
4e747b56b0
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
在用户默认浏览器中打开URL的示例:
|
在用户默认浏览器中打开URL的示例:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var shell = require('shell');
|
const {shell} = require('electron');
|
||||||
|
|
||||||
shell.openExternal('https://github.com');
|
shell.openExternal('https://github.com');
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue