Skip to content

the-divine-cheese-code for windows #11

@eskemojoe007

Description

@eskemojoe007

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)
             #"\\" "/"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions