Skip to content

Commit

Permalink
Merge pull request #8830 from CesiumGS/fix-ie11
Browse files Browse the repository at this point in the history
startsWith is not supported on IE11
  • Loading branch information
mramato authored May 8, 2020
2 parents 8b5539f + ea6ff5d commit c2b94b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Scene/CreditDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function getDefaultCredit() {

// When hosting in a WebView, the base URL scheme is file:// or ms-appx-web://
// which is stripped out from the Credit's <img> tag; use the full path instead
if (!logo.startsWith("http://") && !logo.startsWith("https://")) {
if (logo.indexOf("http://") !== 0 && logo.indexOf("https://") !== 0) {
var logoUrl = new Uri(logo);
logo = logoUrl.getPath();
}
Expand Down

0 comments on commit c2b94b4

Please sign in to comment.