Move XHRProxy code to the xhrInterceptor folder

Change-Id: I2d2e9a4b4c43b1ed75ed500ba202283e8f3b16b7
diff --git a/src/injections/xhrProxy.js b/src/injections/xhrProxy.js
new file mode 100644
index 0000000..d33521c
--- /dev/null
+++ b/src/injections/xhrProxy.js
@@ -0,0 +1,3 @@
+import XHRProxy from '../xhrInterceptor/XHRProxy.js';
+
+new XHRProxy();
diff --git a/src/injections/xhrInterceptor.js b/src/xhrInterceptor/XHRProxy.js
similarity index 98%
rename from src/injections/xhrInterceptor.js
rename to src/xhrInterceptor/XHRProxy.js
index 07742dd..6254fbf 100644
--- a/src/injections/xhrInterceptor.js
+++ b/src/xhrInterceptor/XHRProxy.js
@@ -19,7 +19,7 @@
 }
 
 // Slightly based in https://stackoverflow.com/a/24561614.
-class XHRProxy {
+export default class XHRProxy {
   constructor() {
     this.originalXMLHttpRequest = window.XMLHttpRequest;
     const classThis = this;
@@ -201,5 +201,3 @@
     return this;
   }
 }
-
-new XHRProxy();
diff --git a/webpack.config.js b/webpack.config.js
index 619237e..4f4a849 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -51,7 +51,7 @@
     // Injected JS
     profileIndicatorInject: './src/injections/profileIndicator.js',
     batchLockInject: './src/injections/batchLock.js',
-    xhrInterceptorInject: './src/injections/xhrInterceptor.js',
+    xhrInterceptorInject: './src/injections/xhrProxy.js',
     extraInfoInject: './src/injections/extraInfo.js',
     workflowComponentsInject: './src/injections/workflowComponentsInject.js',