Fix calls to deprecated node::ThrowError API
This commit is contained in:
parent
04d24f61fe
commit
132c13a11b
9 changed files with 43 additions and 41 deletions
|
@ -32,9 +32,9 @@ Tray::~Tray() {
|
|||
}
|
||||
|
||||
// static
|
||||
mate::Wrappable* Tray::New(const gfx::Image& image) {
|
||||
mate::Wrappable* Tray::New(v8::Isolate* isolate, const gfx::Image& image) {
|
||||
if (!Browser::Get()->is_ready()) {
|
||||
node::ThrowError("Cannot create Tray before app is ready");
|
||||
node::ThrowError(isolate, "Cannot create Tray before app is ready");
|
||||
return nullptr;
|
||||
}
|
||||
return new Tray(image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue