Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the-divine-cheese-code for windows #11

Open
eskemojoe007 opened this issue Apr 5, 2019 · 0 comments
Open

the-divine-cheese-code for windows #11

eskemojoe007 opened this issue Apr 5, 2019 · 0 comments

Comments

@eskemojoe007
Copy link

On windows the supplied url function doesn't provide the proper url since windows returns with \ instead of other systems and browsers that need /. Its a simple fix however that I at least wanted to mention here.

(defn url
  [filename]
  (s/replace (str "file:///"
              (System/getProperty "user.dir")
              "/"
              filename)
             #"\\" "/"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant