We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec1502 commit ba916abCopy full SHA for ba916ab
src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
@@ -2374,7 +2374,13 @@ function RemoteFunctions(config = {}) {
2374
if (this.element.tagName.toLowerCase() === 'a') {
2375
let href = this.element.getAttribute('href');
2376
if (href && href.trim()) {
2377
- content += `<div class='href-info'>${ICONS.link} ${href.trim()}</div>`;
+ let displayHref = href.trim();
2378
+
2379
+ // this is just to safeguard from very large URLs. 35 char limit should be fine
2380
+ if (displayHref.length > 35) {
2381
+ displayHref = displayHref.substring(0, 35) + '...';
2382
+ }
2383
+ content += `<div class='href-info'>${ICONS.link} ${displayHref}</div>`;
2384
}
2385
2386
0 commit comments