Skip to content

Commit

Permalink
Path string compatibility with Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Yahia1018 committed Jul 21, 2023
1 parent e93c031 commit db318ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private String eval(Path path) throws IOException {
var script = String.format("""
import config from '%s';
export default JSON.stringify(config);
""", path.toAbsolutePath());
""", path.toUri());
var source = Source.newBuilder("js", new StringReader(script), "script.js")
.mimeType("application/javascript+module").build();
var value = context.eval(source);
Expand Down

0 comments on commit db318ab

Please sign in to comment.