diff --git a/docs-translations/zh-CN/api/shell.md b/docs-translations/zh-CN/api/shell.md index a30334dcdc9c..17ebe5511a37 100644 --- a/docs-translations/zh-CN/api/shell.md +++ b/docs-translations/zh-CN/api/shell.md @@ -6,7 +6,7 @@ 在用户默认浏览器中打开URL的示例: ```javascript -var shell = require('shell'); +const {shell} = require('electron'); shell.openExternal('https://github.com'); ```