Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriodiste authored Sep 24, 2023
1 parent ba8a43d commit 51112ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function get_url(resource, flag = false) {
if (!flag || true) {
if (resource.startsWith("/")) to_ret = resource.substring(1);
if (resource.startsWith("./")) to_ret = resource.substring(2);
to_ret = root_folder + resource;
to_ret = root_folder + to_ret;
} else {
if (resource.startsWith("/")) to_ret = ".." + resource;
if (resource.startsWith("./")) to_ret = "." + resource;
Expand Down

0 comments on commit 51112ec

Please sign in to comment.