Skip to content

Commit

Permalink
Update based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsakh committed Feb 13, 2019
1 parent 83b583c commit 54f0131
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 699 deletions.
12 changes: 1 addition & 11 deletions atom/renderer/api/atom_api_web_frame.cc
Expand Up @@ -401,18 +401,8 @@ void SetIsolatedWorldHumanReadableName(v8::Local<v8::Value> window,

void SetIsolatedWorldInfo(v8::Local<v8::Value> window,
int world_id,
const mate::Dictionary& options,
mate::Arguments* args) {
if (args->Length() < 1) {
args->ThrowError("Invalid args");
return;
}

mate::Dictionary options;
if (!args->GetNext(&options)) {
args->ThrowError("Must pass valid object");
return;
}

std::string origin, csp, name;
options.Get("securityOrigin", &origin);
options.Get("csp", &csp);
Expand Down

0 comments on commit 54f0131

Please sign in to comment.