File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -331,13 +331,13 @@ if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
331331
332332 /* prevent logging AJAX calls to static and inline files, like templates */
333333 var path = url;
334- if (url .substr (0 , 1 ) === ' /' ) {
334+ if (url .slice (0 , 1 ) === ' /' ) {
335335 if (0 === url .indexOf (' {{ request.basePath|e(' js' ) }}' )) {
336- path = url .substr ({{ request .basePath | length }});
336+ path = url .slice ({{ request .basePath | length }});
337337 }
338338 }
339339 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 }});
341341 }
342342
343343 if (! path .match (new RegExp ({{ excluded_ajax_paths| json_encode| raw }}))) {
You can’t perform that action at this time.
0 commit comments