UNPKG
node-gtk-windows
Version:
latest (0.11.0)
0.11.0
GNOME Gtk+ bindings for NodeJS
github.com/romgrk/node-gtk
dminikm/node-gtk-windows
node-gtk-windows
/
scripts
/
preload.js
11 lines
(8 loc)
•
162 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/* * preload.js */
global
.
gi
=
require
(
'../'
)
global
.
gtk
= gi.
require
(
'Gtk'
,
'3.0'
)
global
.
gdk
= gi.
require
(
'Gdk'
,
'3.0'
) gtk.
init
([]) gdk.
init
([])