File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
16
16
JSON3 = " 0f8b85d8-7281-11e9-16c2-39a750bddbf1"
17
17
MD5 = " 6ac74813-4b46-53a4-afec-0b5dc9d7885c"
18
18
Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
19
+ RelocatableFolders = " 05181044-ff0b-4ac5-8273-598c1e38db00"
19
20
Sockets = " 6462fe0b-24de-5631-8697-dd941f90decc"
20
21
Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
21
22
UUIDs = " cf7118a7-6976-5b1a-9a39-7adc72f591a4"
@@ -33,6 +34,7 @@ HTTP = "1"
33
34
JSON = " 0.21"
34
35
JSON3 = " 1.9"
35
36
MD5 = " 0.2"
37
+ RelocatableFolders = " 1"
36
38
YAML = " 0.4.7"
37
39
julia = " 1.6"
38
40
Original file line number Diff line number Diff line change
1
+
1
2
function process_default_favicon (request:: HTTP.Request , state:: HandlerState )
2
- ico_contents = read (
3
- joinpath (ROOT_PATH, " src" , " favicon.ico" )
4
- )
3
+ ico_contents = read (FAVICON_PATH)
5
4
return HTTP. Response (
6
5
200 ,
7
6
[" Content-Type" => " image/x-icon" ],
Original file line number Diff line number Diff line change 1
1
using YAML
2
+ using RelocatableFolders: @path
3
+
4
+ # TODO move to DashCoreResources
5
+ const FAVICON_PATH = @path joinpath (@__DIR__ , " .." , " favicon.ico" )
2
6
3
7
load_meta (name) = YAML. load_file (
4
8
joinpath (artifact " dash_resources" , " $(name) .yaml" )
You can’t perform that action at this time.
0 commit comments