Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F63441
electron.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
548 B
Subscribers
None
electron.js
View Options
const
{
app
,
BrowserWindow
}
=
require
(
"electron"
);
let
window
;
//global reference is needed for garbage collection
function
createWindow
()
{
window
=
new
BrowserWindow
({
icon
:
"favicon.ico"
,
backgroundColor
:
"#000"
,
show
:
false
});
window
.
loadFile
(
"index.html"
);
window
.
once
(
"ready-to-show"
,
window
.
show
);
window
.
on
(
"closed"
,
function
(){
window
=
null
});
window
.
autoHideMenuBar
=
true
;
window
.
setMenuBarVisibility
(
false
);
}
app
.
on
(
"ready"
,
createWindow
);
app
.
on
(
"window-all-closed"
,
app
.
quit
);
app
.
on
(
'activate'
,
function
(){
if
(
!
window
)
createWindow
()});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 8, 9:48 PM (1 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30459
Attached To
rTDCWEB 3DCycles Web
Event Timeline
Log In to Comment