Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
8f3a41aa
Commit
8f3a41aa
authored
Jun 19, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update electron api to v1.2.3
更新electron API到1.2.3
parent
79a7b6a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
app.js
app.js
+4
-5
No files found.
app.js
View file @
8f3a41aa
...
...
@@ -6,10 +6,9 @@
'use strict'
;
const
electron
=
require
(
'electron'
),
app
=
electron
.
app
,
path
=
require
(
'path'
),
BrowserWindow
=
electron
.
BrowserWindow
;
const
path
=
require
(
'path'
);
const
electron
=
require
(
'electron'
);
const
{
app
,
protocol
,
BrowserWindow
}
=
require
(
'electron'
);
app
.
once
(
'ready'
,
()
=>
{
...
...
@@ -22,7 +21,7 @@ app
[
'views'
,
'/views/'
,
12
],
//- 通过访问访问ant-views来访问views 文件
[
'src'
,
'/source/'
,
10
]
//- 通过访问访问ant-src来访问source 文件
].
map
((
_
)
=>
{
electron
.
protocol
.
registerFileProtocol
(
`ant-
${
_
[
0
]}
`
,
(
req
,
cb
)
=>
{
protocol
.
registerFileProtocol
(
`ant-
${
_
[
0
]}
`
,
(
req
,
cb
)
=>
{
cb
({
path
:
path
.
join
(
__dirname
,
_
[
1
],
req
.
url
.
substr
(
_
[
2
]))
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment