Skip to content

Commit ed31322

Browse files
committed
use const
1 parent e320c53 commit ed31322

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ function uploadFile(file, callback) {
351351
callback(xhr.responseText);
352352
}
353353
};
354-
let contextPath = window.location.pathname.substr(suburl.length).replace(/^\/+$/g, '');
355-
let contextPathArray = contextPath.split('/');
354+
const contextPath = window.location.pathname.substr(suburl.length).replace(/^\/+$/g, '');
355+
const contextPathArray = contextPath.split('/');
356356
xhr.open("post", suburl + "/" + contextPathArray[0] + "/" + contextPathArray[1] + "/attachments", true);
357357
xhr.setRequestHeader("X-Csrf-Token", csrf);
358358
const formData = new FormData();

0 commit comments

Comments
 (0)