Skip to content

Commit ec25c83

Browse files
committed
Live viewer: display the origin too
1 parent 2cb4fc2 commit ec25c83

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

live-viewer/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ <h2>Browser's URL components</h2>
3939
<tr id="pathname"><th>pathname</th><td></td></tr>
4040
<tr id="search"><th>search</th><td></td></tr>
4141
<tr id="hash"><th>hash</th><td></td></tr>
42+
<tr id="origin"><th>origin</th><td></td></tr>
4243
</table>
4344

4445
<p class="output error" id="browser-error"></p>
@@ -55,6 +56,7 @@ <h2>jsdom/whatwg-url's components</h2>
5556
<tr id="pathname"><th>pathname</th><td></td></tr>
5657
<tr id="search"><th>search</th><td></td></tr>
5758
<tr id="hash"><th>hash</th><td></td></tr>
59+
<tr id="origin"><th>origin</th><td></td></tr>
5860
</table>
5961

6062
<p class="output error" id="jsdom-error"></p>

live-viewer/live-viewer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"hostname",
2424
"pathname",
2525
"search",
26-
"hash"
26+
"hash",
27+
"origin"
2728
];
2829

2930
urlInput.addEventListener("input", update);

0 commit comments

Comments
 (0)