File tree 2 files changed +4
-5
lines changed
debug_toolbar/static/debug_toolbar/js
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 16
16
"noForEach" : " off"
17
17
},
18
18
"style" : {
19
- "noArguments" : " off" ,
20
19
"useTemplate" : " off"
21
20
},
22
21
"suspicious" : {
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ const djdt = {
308
308
309
309
// Patch XHR / traditional AJAX requests
310
310
const origOpen = XMLHttpRequest . prototype . open ;
311
- XMLHttpRequest . prototype . open = function ( ) {
311
+ XMLHttpRequest . prototype . open = function ( ... args ) {
312
312
this . addEventListener ( "load" , function ( ) {
313
313
// Chromium emits a "Refused to get unsafe header" uncatchable warning
314
314
// when the header can't be fetched. While it doesn't impede execution
@@ -319,12 +319,12 @@ const djdt = {
319
319
handleAjaxResponse ( this . getResponseHeader ( "djdt-store-id" ) ) ;
320
320
}
321
321
} ) ;
322
- origOpen . apply ( this , arguments ) ;
322
+ origOpen . apply ( this , args ) ;
323
323
} ;
324
324
325
325
const origFetch = window . fetch ;
326
- window . fetch = function ( ) {
327
- const promise = origFetch . apply ( this , arguments ) ;
326
+ window . fetch = function ( ... args ) {
327
+ const promise = origFetch . apply ( this , args ) ;
328
328
promise . then ( function ( response ) {
329
329
if ( response . headers . get ( "djdt-store-id" ) !== null ) {
330
330
handleAjaxResponse ( response . headers . get ( "djdt-store-id" ) ) ;
You can’t perform that action at this time.
0 commit comments