Skip to content

Commit a91fa27

Browse files
author
p01
committed
Display the protocol as fall back origin for cross origin resources without a host ( e.g. data: uri )
1 parent e470ad6 commit a91fa27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resource-manager/resource_templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
217217
"data-tooltip-text", r.url
218218
],
219219
" ",
220-
r.same_origin ? [] : ["span", r.host, "class", "resource-domain"],
220+
r.same_origin ? [] : ["span", r.host || r.protocol, "class", "resource-domain"],
221221
"class", "resource-tree-resource"
222222
],
223223
"class", (context.selected_resource_uid == r.uid ? "resource-highlight" : ""),

0 commit comments

Comments
 (0)