File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/gitpod-shared/portsview/src/porttable Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
const dispatch = createEventDispatcher <{
12
12
command: { command: PortCommand ; port: GitpodPortObject };
13
13
}>();
14
- function openAddr(e : Event ) {
15
- e .preventDefault ();
14
+ function openAddr() {
16
15
if (port .status .exposed .url ) {
17
16
dispatch (" command" , { command: " openBrowser" as PortCommand , port });
18
17
}
24
23
alwaysShow
25
24
on:command ={(e ) => { console .log (e ); dispatch (" command" , { command: e .detail , port }) }}
26
25
>
27
- <a on:click ={(e ) => { openAddr (e ) }} href ={port .status .exposed .url }>{port .status .exposed .url }</a >
26
+ <!-- svelte-ignore a11y-invalid-attribute -->
27
+ <a on:click ={() => { openAddr (); return false ; }} href ="javascript:void(0)" >{port .status .exposed .url }</a >
28
28
</PortHoverActions >
29
29
30
30
<style >
You can’t perform that action at this time.
0 commit comments