Skip to content

Commit 46a356f

Browse files
committed
Update arrow function
replace function(e) with arrow function.
1 parent cee54f7 commit 46a356f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

planimationLibrary.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ define(["https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.1.3/pixi.min.js"], fun
6767
var url = 'https://planimation.planning.domains/upload/pddl';
6868
xhr.open("Post", url);
6969
xhr.send(formData);
70-
xhr.onreadystatechange = function (e) {
70+
xhr.onreadystatechange = (e) => {
7171
if (xhr.readyState === XMLHttpRequest.DONE) {
7272
var status = xhr.status;
7373
if (status === 0 || (status >= 200 && status < 400)) {
@@ -299,7 +299,7 @@ define(["https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.1.3/pixi.min.js"], fun
299299
var url = 'https://planimation.planning.domains/upload/pddl';
300300
xhr.open("Post", url);
301301
xhr.send(formData);
302-
xhr.onreadystatechange = function (e) {
302+
xhr.onreadystatechange = (e) => {
303303
if (xhr.readyState === XMLHttpRequest.DONE) {
304304
var status = xhr.status;
305305
if (status === 0 || (status >= 200 && status < 400)) {

0 commit comments

Comments
 (0)