From e073bac9a90544bddc0af67dd7b31c232687a16c Mon Sep 17 00:00:00 2001
From: Sebastien Curt <sebastien.curt@tetras-libre.fr>
Date: Tue, 3 May 2022 14:15:48 +0200
Subject: [PATCH] rekall.js refactoring

---
 capsule-prototype/js/TimelinesWidget.js      |  0
 capsule-prototype/js/online-rekall/Rekall.js | 12 ++++++------
 2 files changed, 6 insertions(+), 6 deletions(-)
 create mode 100644 capsule-prototype/js/TimelinesWidget.js

diff --git a/capsule-prototype/js/TimelinesWidget.js b/capsule-prototype/js/TimelinesWidget.js
new file mode 100644
index 0000000..e69de29
diff --git a/capsule-prototype/js/online-rekall/Rekall.js b/capsule-prototype/js/online-rekall/Rekall.js
index 2a83503..fb2466a 100644
--- a/capsule-prototype/js/online-rekall/Rekall.js
+++ b/capsule-prototype/js/online-rekall/Rekall.js
@@ -107,9 +107,9 @@ Rekall.prototype.loadXMLFile = function () {
                     //if($(this).find('document').length == 0) {
                     //	openAlert("Start by adding files to your project.", 60);
                     //} else {
-                    if (rekall.project == undefined)
-                        rekall.project = new Project(url, that);
-                    rekall.project.loadXML($(this));
+                    if (that.project == undefined)
+                        that.project = new Project(url, that);
+                    that.project.loadXML($(this));
                     //}
                 });
             }
@@ -129,9 +129,9 @@ Rekall.prototype.loadXMLFile = function () {
                             if ($(this).find('document').length == 0) {
                                 openAlert("Start by adding files to your project.", 60);
                             } else {
-                                if (rekall.project == undefined)
-                                    rekall.project = new Project(url, that);
-                                rekall.project.loadXML($(this));
+                                if (that.project == undefined)
+                                    that.project = new Project(url, that);
+                                that.project.loadXML($(this));
                             }
                         });
                     }
-- 
GitLab