Skip to content

Commit d3589e6

Browse files
author
Chris K
committed
DFL-3414 Event listener tooltips looks strange when url doesn't look like ending with a filename
1 parent e9e302f commit d3589e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ecma-debugger/eventlisteners/evlistenertemplates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@
177177
if (script.uri)
178178
{
179179
var is_linked = script.script_type == "linked";
180-
ret.push("span", str.replace("%s", script.filename + ":" + line_number),
180+
ret.push("span", str.replace("%s", script.short_url + ":" + line_number),
181181
"data-tooltip", is_linked && "url-tooltip",
182182
"data-tooltip-text", is_linked && script.uri);
183183
}
184184
else
185185
{
186186
var rt = window.runtimes.getRuntime(script.runtime_id);
187187
if (rt)
188-
ret.push("span", str.replace("%s", rt.filename),
188+
ret.push("span", str.replace("%s", rt.short_url),
189189
"data-tooltip", "url-tooltip",
190190
"data-tooltip-text", rt.uri);
191191
else

0 commit comments

Comments
 (0)