feat: remove on(ready) requirement from powerMonitor (#37937)
This commit is contained in:
parent
908bef7ca9
commit
fef1b04238
3 changed files with 25 additions and 24 deletions
|
@ -91,7 +91,6 @@ void PowerMonitor::SetListeningForShutdown(bool is_listening) {
|
|||
|
||||
// static
|
||||
v8::Local<v8::Value> PowerMonitor::Create(v8::Isolate* isolate) {
|
||||
CHECK(Browser::Get()->is_ready());
|
||||
auto* pm = new PowerMonitor(isolate);
|
||||
auto handle = gin::CreateHandle(isolate, pm).ToV8();
|
||||
pm->Pin(isolate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue