Skip to content

Commit 36a7b20

Browse files
authored
patch for #155 (#156)
1 parent 9437513 commit 36a7b20

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

Project.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = [
44
"Jonas Asprion <jonas.asprion@gmx.ch",
55
"Thibaut Lienart <tlienart@me.com>"
66
]
7-
version = "1.1.0"
7+
version = "1.1.1"
88

99
[deps]
1010
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
@@ -13,14 +13,6 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1313
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
1414

1515
[compat]
16-
Crayons = "4"
1716
HTTP = "1"
1817
MIMEs = "0.1"
1918
julia = "1.6"
20-
21-
[extras]
22-
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
23-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
24-
25-
[targets]
26-
test = ["Test", "Crayons"]

src/server.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# https://github.com/fonsp/Pluto.jl/blob/bedc7767d76439477bae8a5165f4f39906f9064c/src/notebook/path%20helpers.jl#L3-L8
2+
function detectwsl()
3+
Sys.islinux() &&
4+
isfile("/proc/sys/kernel/osrelease") &&
5+
occursin(r"Microsoft|WSL"i, read("/proc/sys/kernel/osrelease", String))
6+
end
7+
18
"""
29
open_in_default_browser(url)
310

test/Project.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[deps]
2+
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
3+
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
4+
MIMEs = "6c6e2e6c-3030-632d-7369-2d6c69616d65"
5+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
6+
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
7+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8+
9+
[compat]
10+
Crayons = "4"
11+
HTTP = "1"
12+
MIMEs = "0.1"

0 commit comments

Comments
 (0)