Merge branch 'dev' into hugo-shipping-notice
This commit is contained in:
commit
bc86720744
49 files changed
+2950
-458
No files matched your search
@@ -386,26 +386,6 @@ export function createChatPageMarkdownApi(ctx: ChatPageMarkdownContext) {
|
||||
const target = event.target as HTMLElement | null;
|
||||
const anchor = target?.closest?.('a') as HTMLAnchorElement | null;
|
||||
const rawHref = anchor?.getAttribute('href') || '';
|
||||
// #region debug-point A:asset-history-anchor-click
|
||||
if (rawHref.startsWith('#asset-history?')) {
|
||||
fetch('http://127.0.0.1:7777/event', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
sessionId: 'asset-history-click',
|
||||
runId: 'pre-fix',
|
||||
hypothesisId: 'A',
|
||||
location: 'frontend/useChatPageMarkdown.ts',
|
||||
msg: '[DEBUG] asset history anchor clicked',
|
||||
data: {
|
||||
href: rawHref,
|
||||
tagName: target?.tagName || '',
|
||||
anchorText: String(anchor?.textContent || '').trim(),
|
||||
},
|
||||
ts: Date.now(),
|
||||
}),
|
||||
}).catch(() => {});
|
||||
}
|
||||
// #endregion
|
||||
if (rawHref.startsWith('#asset-history?')) {
|
||||
event.preventDefault();
|
||||
const params = new URLSearchParams(rawHref.slice('#asset-history?'.length));
|
||||
|
||||
Reference in new issue
Block a user