1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 13:00:42 +01:00

Update openhandler.js (#685)

Update canonical search in url ?& symbols debug handler url ajax
This commit is contained in:
leparkour 2024-12-12 13:10:27 +02:00 committed by GitHub
parent 0a2ddcb45c
commit c2f1006129
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,7 +190,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
ajax: function(data, callback) {
var url = this.get('url');
if (data) {
url = url + '?' + new URLSearchParams(data);
url = url + ( url.includes('?') ? '&' : '?' ) + new URLSearchParams(data);
}
fetch(url, {