fix: NSImageName string conversion (#23467)
This commit is contained in:
parent
392ea320cf
commit
6114518463
4 changed files with 19 additions and 8 deletions
|
@ -2363,7 +2363,7 @@ void WebContents::StartDrag(const gin_helper::Dictionary& item,
|
|||
}
|
||||
|
||||
gin::Handle<NativeImage> icon;
|
||||
if (!item.Get("icon", &icon)) {
|
||||
if (!item.Get("icon", &icon) || icon->image().IsEmpty()) {
|
||||
args->ThrowError("Must specify non-empty 'icon' option");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue