Skip to content

Commit 4562913

Browse files
committed
fix windows path construction
1 parent 7324807 commit 4562913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nw_content.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void DocumentFinishHook(blink::WebFrame* frame,
170170
std::string path = effective_document_url.path();
171171
v8::Local<v8::Context> v8_context = frame->mainWorldScriptContext();
172172
std::string root_path = extension->path().AsUTF8Unsafe();
173-
base::FilePath root(root_path);
173+
base::FilePath root(extension->path());
174174
RenderViewImpl* rv = RenderViewImpl::FromWebView(frame->view());
175175
if (!rv)
176176
return;
@@ -201,7 +201,7 @@ void DocumentElementHook(blink::WebFrame* frame,
201201
std::string path = effective_document_url.path();
202202
v8::Local<v8::Context> v8_context = frame->mainWorldScriptContext();
203203
std::string root_path = extension->path().AsUTF8Unsafe();
204-
base::FilePath root(root_path);
204+
base::FilePath root(extension->path());
205205
{
206206
blink::WebScopedMicrotaskSuppression suppression;
207207
v8::Context::Scope cscope(v8_context);

0 commit comments

Comments
 (0)