1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-26 19:20:22 +02:00

Use fetch instead of jQuery ajax (#630)

This commit is contained in:
Barry vd. Heuvel
2024-03-20 13:35:41 +01:00
committed by GitHub
parent 42beef04ff
commit 29c8b9c942
4 changed files with 20 additions and 14 deletions

View File

@@ -130,7 +130,7 @@
var header = $('<span title="Filename" />').addClass(csscls('filename')).text(stmt.xdebug_link.filename + ( stmt.xdebug_link.line ? "#" + stmt.xdebug_link.line : ''));
if (stmt.xdebug_link.ajax) {
$('<a title="' + stmt.xdebug_link.url + '"></a>').on('click', function () {
$.ajax(stmt.xdebug_link.url);
fetch(stmt.xdebug_link.url);
}).addClass(csscls('editor-link')).appendTo(header);
} else {
$('<a href="' + stmt.xdebug_link.url + '"></a>').addClass(csscls('editor-link')).appendTo(header);