File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ void ShellContentRendererClient::SetupNodeUtil(
273
273
" if (!process.mainModule.filename || process.mainModule.filename === 'blank') {"
274
274
" var root = '" + root_path + " ';"
275
275
#if defined(OS_WIN)
276
- " process.mainModule.filename = decodeURIComponent(window.location.pathname.substr(1));"
276
+ " process.mainModule.filename = decodeURIComponent(window.location.pathname === 'blank' ? 'blank': window.location.pathname .substr(1));"
277
277
#else
278
278
" process.mainModule.filename = decodeURIComponent(window.location.pathname);"
279
279
#endif
@@ -282,7 +282,7 @@ void ShellContentRendererClient::SetupNodeUtil(
282
282
" process.mainModule.paths = global.require('module')._nodeModulePaths(process.cwd());"
283
283
" process.mainModule.loaded = true;"
284
284
" }" ).c_str ()),
285
- v8::String::NewFromUtf8 (isolate, " process_main" ));
285
+ v8::String::NewFromUtf8 (isolate, " process_main" ));
286
286
CHECK (*script);
287
287
script->Run ();
288
288
}
You can’t perform that action at this time.
0 commit comments