diff --git a/atom/browser/api/atom_api_web_request.cc b/atom/browser/api/atom_api_web_request.cc index ff1e2254b89b..d8526e03ad8f 100644 --- a/atom/browser/api/atom_api_web_request.cc +++ b/atom/browser/api/atom_api_web_request.cc @@ -26,6 +26,7 @@ struct Converter { std::string pattern; if (!ConvertFromV8(isolate, val, &pattern)) return false; + *out = URLPattern(URLPattern::SCHEME_ALL); return out->Parse(pattern) == URLPattern::PARSE_SUCCESS; } };