Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
fix(tests): String.prototype.startswith is ES6 only and phantomjs do …
Browse files Browse the repository at this point in the history
…not have it
  • Loading branch information
toutpt committed May 13, 2016
1 parent 5e75d38 commit 857a6a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ function osmAPI($base64, $http, $q, osmSettingsService, osmUtilsService, options
if (!d) {
return d;
}
if (d.startsWith) {
if (d.startsWith('<?xml')) {
if (d.substr) {
if (d.substr(0, 5) === '<?xml') {
return osmUtilsService.xml2js(d);
}
} else if (isElement(d)) {
Expand Down

0 comments on commit 857a6a4

Please sign in to comment.