Skip to content

Commit aef3e70

Browse files
committed
Change start function name
1 parent 7a02b66 commit aef3e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/color-picker-win.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ std::string ColorPicker::GetColorHex(COLORREF &ref) {
131131

132132
/* NODE FUNCTIONS */
133133

134-
NAN_METHOD(StartListening) {
134+
NAN_METHOD(StartColorPicker) {
135135
auto* progress = new Callback(To<v8::Function>(info[0]).ToLocalChecked());
136136
auto* callback = new Callback(To<v8::Function>(info[1]).ToLocalChecked());
137137

138138
AsyncQueueWorker(new ColorPicker(callback, progress));
139139
}
140140

141141
NAN_MODULE_INIT(Init) {
142-
Nan::Set(target, New<String>("startListening").ToLocalChecked(),GetFunction(New<FunctionTemplate>(StartListening)).ToLocalChecked());
142+
Nan::Set(target, New<String>("startColorPicker").ToLocalChecked(),GetFunction(New<FunctionTemplate>(StartColorPicker)).ToLocalChecked());
143143
g_colorEvent = CreateEvent(nullptr, false, false, L"");
144144
}
145145

0 commit comments

Comments
 (0)