Skip to content

Commit dd8a8df

Browse files
committed
fix: add unique IDs for each jQuery CDN script to prevent loading conflicts
1 parent ac24b58 commit dd8a8df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/report/utility/genHtml.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ const html = async (
202202
'https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js',
203203
'https://unpkg.com/jquery@3.7.1/dist/jquery.min.js'
204204
];
205-
for (const url of jqCdn) {
205+
for (let i = 0; i < jqCdn.length; i++) {
206+
const url = jqCdn[i];
206207
try {
207-
await loadScriptOnce(url, 'jq-cdn');
208+
await loadScriptOnce(url, 'jq-cdn-' + i);
208209
} catch (e) {
209210
console.error('[jQuery] Load failed', url, e);
210211
}

0 commit comments

Comments
 (0)