Commit 35373cf7 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

Fixes openpanel unable to open a custom path on windows

*Addresses issue #449
parent c4495143
Pipeline #2910 failed with stage
in 226 minutes and 55 seconds
......@@ -5668,6 +5668,9 @@ function file_dialog(cid, type, target, start_path) {
// it just doesn't work. So this requires us to have the parent <span>
// around the <input>. Then when we change the innerHTML of the span the
// new value for nwworkingdir magically works.
if(nw_os_is_windows) {
start_path = start_path.replace(/\//g, '\\');
dialog_options = {
style: "display: none;",
type: "file",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment