mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
Remove the AllocateSystemIOPorts call
It is no longer needed and it is crashing.
This commit is contained in:
@@ -92,10 +92,6 @@ using atom::api::PowerMonitor;
|
||||
|
||||
void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
|
||||
v8::Local<v8::Context> context, void* priv) {
|
||||
#if defined(OS_MACOSX)
|
||||
base::PowerMonitorDeviceSource::AllocateSystemIOPorts();
|
||||
#endif
|
||||
|
||||
v8::Isolate* isolate = context->GetIsolate();
|
||||
mate::Dictionary dict(isolate, exports);
|
||||
dict.Set("powerMonitor", PowerMonitor::Create(isolate));
|
||||
|
||||
Reference in New Issue
Block a user