fix: Use legacy-compatible methods for IE11 by jhildenbiddle · Pull Request #1495 · docsifyjs/docsify

Summary

Modern convenience methods like Array.prototype.find() and String.prototype.startsWith() are not compatible with legacy browsers like IE11. This PR replaces those methods with legacy-compatible approaches that accomplish the same thing.

What kind of change does this PR introduce? (check at least one)

  • Bugfix

If changing the UI of default theme, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

You have tested in the following browsers: (Providing a detailed version will be better.)

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE