Skip to content

Commit 3bf1b77

Browse files
committed
hotfix paths
1 parent ef71f76 commit 3bf1b77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LiveServer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export serve, servedocs
1212
#
1313

1414
"""Script to insert on a page for live reload, see `client.html`."""
15-
const BROWSER_RELOAD_SCRIPT = read(joinpath(dirname(pathof(LiveServer)), "client.html"), String)
15+
const BROWSER_RELOAD_SCRIPT = read(joinpath(@__DIR__, "client.html"), String)
1616

1717
"""Whether to display messages while serving or not, see [`verbose`](@ref)."""
1818
const VERBOSE = Ref{Bool}(false)

test/server.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@testset "Server/Paths " begin
22
# requested path --> a filesystem path
33
bk = pwd()
4-
cd(dirname(dirname(pathof(LiveServer))))
4+
cd(joinpath(@__DIR__, ".."))
55
req = "tmp"
66
@test LS.get_fs_path(req) == ""
77
req = "/test/dummies/index.html"

0 commit comments

Comments
 (0)