| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -490,7 +490,7 @@ For instance, changing from `http` to `https` works: | |||
| 490 | 490 | const u = new URL('http://example.org'); | |
| 491 | 491 | u.protocol = 'https'; | |
| 492 | 492 | console.log(u.href); | |
| 493 | - // https://example.org | ||
| 493 | + // https://example.org/ | ||
| 494 | 494 | ``` | |
| 495 | 495 | ||
| 496 | 496 | However, changing from `http` to a hypothetical `fish` protocol does not | |
@@ -500,7 +500,7 @@ because the new protocol is not special. | |||
| 500 | 500 | const u = new URL('http://example.org'); | |
| 501 | 501 | u.protocol = 'fish'; | |
| 502 | 502 | console.log(u.href); | |
| 503 | - // http://example.org | ||
| 503 | + // http://example.org/ | ||
| 504 | 504 | ``` | |
| 505 | 505 | ||
| 506 | 506 | Likewise, changing from a non-special protocol to a special protocol is also | |
| Back | FazBrowse Home | New Git URL |
0 commit comments