File tree Expand file tree Collapse file tree 5 files changed +28
-2
lines changed Expand file tree Collapse file tree 5 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 7
7
< title > WasmHost</ title >
8
8
< link href ="css/bootstrap/bootstrap.min.css " rel ="stylesheet " />
9
9
< link href ="css/site.css " rel ="stylesheet " />
10
+ < base href ="/ " />
10
11
</ head >
11
12
12
13
< body >
13
14
< app > Loading...</ app >
14
15
16
+ < script type ="text/javascript ">
17
+ // if domain ends with .github.io, fix <base href ...>
18
+ if ( window . location . host . endsWith ( ".github.io" ) )
19
+ {
20
+ var base = window . location . protocol
21
+ + "//" + window . location . host
22
+ + "/" + window . location . pathname . split ( "/" ) [ 1 ] + "/" ;
23
+
24
+ baseElement = document . getElementsByTagName ( "head" ) [ 0 ] . getElementsByTagName ( "base" ) [ 0 ] ;
25
+ baseElement . href = base ;
26
+ }
27
+ </ script >
28
+
15
29
< div id ="blazor-error-ui ">
16
30
An unhandled error has occurred.
17
31
< a href ="" class ="reload "> Reload</ a >
Original file line number Diff line number Diff line change 7
7
< title > WasmHost</ title >
8
8
< link href ="css/bootstrap/bootstrap.min.css " rel ="stylesheet " />
9
9
< link href ="css/site.css " rel ="stylesheet " />
10
+ < base href ="/ " />
10
11
</ head >
11
12
12
13
< body >
13
14
< app > Loading...</ app >
14
15
16
+ < script type ="text/javascript ">
17
+ // if domain ends with .github.io, fix <base href ...>
18
+ if ( window . location . host . endsWith ( ".github.io" ) )
19
+ {
20
+ var base = window . location . protocol
21
+ + "//" + window . location . host
22
+ + "/" + window . location . pathname . split ( "/" ) [ 1 ] + "/" ;
23
+
24
+ baseElement = document . getElementsByTagName ( "head" ) [ 0 ] . getElementsByTagName ( "base" ) [ 0 ] ;
25
+ baseElement . href = base ;
26
+ }
27
+ </ script >
28
+
15
29
< div id ="blazor-error-ui ">
16
30
An unhandled error has occurred.
17
31
< a href ="" class ="reload "> Reload</ a >
Load Diff This file was deleted.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments