mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
add methods
This commit is contained in:
@@ -1900,6 +1900,8 @@ void Session::FillObjectTemplate(v8::Isolate* isolate,
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
.SetMethod("loadExtension", &Session::LoadExtension)
|
||||
.SetMethod("removeExtension", &Session::RemoveExtension)
|
||||
.SetMethod("enableExtension", &Session::EnableExtension)
|
||||
.SetMethod("disableExtension", &Session::DisableExtension)
|
||||
.SetMethod("getExtension", &Session::GetExtension)
|
||||
.SetMethod("getAllExtensions", &Session::GetAllExtensions)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user