File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Bundle/WebProfilerBundle/Resources/views/Profiler
Component/VarDumper/Dumper Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -331,13 +331,13 @@ if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
331
331
332
332
/* prevent logging AJAX calls to static and inline files, like templates */
333
333
var path = url;
334
- if (url .substr (0 , 1 ) === ' /' ) {
334
+ if (url .slice (0 , 1 ) === ' /' ) {
335
335
if (0 === url .indexOf (' {{ request.basePath|e(' js' ) }}' )) {
336
- path = url .substr ({{ request .basePath | length }});
336
+ path = url .slice ({{ request .basePath | length }});
337
337
}
338
338
}
339
339
else if (0 === url .indexOf (' {{ (request.schemeAndHttpHost ~ request.basePath)|e(' js' ) }}' )) {
340
- path = url .substr ({{ (request .schemeAndHttpHost ~ request .basePath )| length }});
340
+ path = url .slice ({{ (request .schemeAndHttpHost ~ request .basePath )| length }});
341
341
}
342
342
343
343
if (! path .match (new RegExp ({{ excluded_ajax_paths| json_encode| raw }}))) {
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ function xpathHasClass(className) {
371
371
if (/\bsf-dump-toggle\b/.test(a.className)) {
372
372
e.preventDefault();
373
373
if (!toggle(a, isCtrlKey(e))) {
374
- var r = doc.getElementById(a.getAttribute('href').substr (1)),
374
+ var r = doc.getElementById(a.getAttribute('href').slice (1)),
375
375
s = r.previousSibling,
376
376
f = r.parentNode,
377
377
t = a.parentNode;
@@ -438,7 +438,7 @@ function xpathHasClass(className) {
438
438
toggle(a);
439
439
}
440
440
} else if (/\bsf-dump-ref\b/.test(elt.className) && (a = elt.getAttribute('href'))) {
441
- a = a.substr (1);
441
+ a = a.slice (1);
442
442
elt.className += ' '+a;
443
443
444
444
if (/[\[{]$/.test(elt.previousSibling.nodeValue)) {
You can’t perform that action at this time.
0 commit comments