Skip to content

Commit

Permalink
Pass --load-dir-res flag also to the new window
Browse files Browse the repository at this point in the history
  • Loading branch information
shalithasuranga committed Sep 6, 2021
1 parent 7136731 commit 23ece1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ export function create(url: string, options: WindowOptions): Promise<any> {
}

let command = window.NL_ARGS.reduce((acc: string, arg: string, index: number) => {
if(arg.includes("--path=") || arg.includes("--debug-mode") || index == 0) {
if(arg.includes("--path=") || arg.includes("--debug-mode") ||
arg.includes("--load-dir-res") || index == 0) {
acc += " " + normalize(arg);
}
return acc;
Expand Down

0 comments on commit 23ece1b

Please sign in to comment.