Skip to content
Snippets Groups Projects
Commit b6e60023 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

startsWith replaced by indexOf

parent fd9d3e43
No related branches found
No related tags found
1 merge request!295Resolve "alternative to google maps api way of visualizing maps"
...@@ -20,7 +20,7 @@ function replaceAsterisk(str) { ...@@ -20,7 +20,7 @@ function replaceAsterisk(str) {
function urlToFileName(url) { function urlToFileName(url) {
var result = url; var result = url;
var token = OriginalServerConnector.getSessionData().getToken(); 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("_")) { if (!result.endsWith("&") && !result.endsWith("_")) {
result += "/"; result += "/";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment