Skip to content

Commit

Permalink
Fixed initialize module
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyGharbi committed Oct 30, 2018
1 parent 0f58a63 commit fa81515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion obs-studio-client/source/module.cpp
Expand Up @@ -39,9 +39,10 @@ void osn::Module::Register(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target)
fnctemplate->SetClassName(Nan::New<v8::String>("Module").ToLocalChecked());

utilv8::SetTemplateField(fnctemplate, "open", Open);
utilv8::SetTemplateField(fnctemplate, "initialize", Initialize);

v8::Local<v8::Template> objtemplate = fnctemplate->PrototypeTemplate();
utilv8::SetTemplateField(objtemplate, "initialize", Initialize);

utilv8::SetTemplateAccessorProperty(objtemplate, "name", Name);
utilv8::SetTemplateAccessorProperty(objtemplate, "fileName", FileName);
utilv8::SetTemplateAccessorProperty(objtemplate, "author", Author);
Expand Down

0 comments on commit fa81515

Please sign in to comment.