From b6e6002316e505f93b0386aeee97efbd80188c15 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 30 Apr 2018 14:47:23 +0200
Subject: [PATCH] startsWith replaced by indexOf

---
 frontend-js/src/test/js/ServerConnector-mock.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend-js/src/test/js/ServerConnector-mock.js b/frontend-js/src/test/js/ServerConnector-mock.js
index 9b0c98452a..fa5f72b1f0 100644
--- a/frontend-js/src/test/js/ServerConnector-mock.js
+++ b/frontend-js/src/test/js/ServerConnector-mock.js
@@ -20,7 +20,7 @@ function replaceAsterisk(str) {
 function urlToFileName(url) {
   var result = url;
   var token = OriginalServerConnector.getSessionData().getToken();
-  if (token !== undefined && token !== "" && url.startsWith("./testFiles/apiCalls")) {
+  if (token !== undefined && token !== "" && url.indexOf("./testFiles/apiCalls") === 0) {
     if (!result.endsWith("&") && !result.endsWith("_")) {
       result += "/";
     }
-- 
GitLab