Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
nodejs-60-2
Project
Project
Details
Activity
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
amonsiri unkham
nodejs-60-2
Commits
186906a7
Commit
186906a7
authored
Feb 28, 2018
by
amonsiri unkham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete main.js
parent
8328fa4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
main.js
week05/windowapp/main.js
+0
-41
No files found.
week05/windowapp/main.js
deleted
100644 → 0
View file @
8328fa4e
const
{
app
,
BrowserWindow
}
=
require
(
'electron'
)
const
path
=
require
(
'path'
)
const
url
=
require
(
'url'
)
let
win
//เรียกอ๊อฟเจ็ควินโดร
function
createWindow
()
{
win
=
new
BrowserWindow
({
width
:
800
,
height
:
600
})
win
.
loadURL
(
url
.
format
({
pathname
:
path
.
join
(
__dirname
,
'index.html'
),
protocol
:
'file:'
,
slashes
:
true
}))
win
.
webContents
.
openDevTools
()
//ให้อีเว้นอะไร
win
.
on
(
'closed'
,
()
=>
{
win
=
null
})
}
app
.
on
(
'ready'
,
createWindow
)
app
.
on
(
'window-all-closed'
,
()
=>
{
if
(
process
.
platform
!==
'darwin'
)
{
app
.
quit
()
}
})
app
.
on
(
'activate'
,
()
=>
{
if
(
win
===
null
)
{
createWindow
()
}
})
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