Skip to content

Commit dd4cc94

Browse files
exsiliumCopilot
andauthored
Update plugins-client/ext.tree/tree.xml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a56e18e commit dd4cc94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins-client/ext.tree/tree.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<a:divider />
7373
<a:item onclick="
7474
var path = trFiles.getSelection()[0].getAttribute('path');
75-
var url = location.protocol + '//' + location.host + path;
75+
var url = new URL(path, location.origin).toString();
7676
require('ext/preview/preview').preview(url, { path: path });
7777
">Preview</a:item>
7878
<a:divider />

0 commit comments

Comments
 (0)