From aca98bf6b4db42edd8c99a0c1f7db28f2017d53a Mon Sep 17 00:00:00 2001 From: Mal Wood-Santoro Date: Tue, 1 Sep 2020 09:31:02 -0700 Subject: [PATCH 1/2] Update README.md Add note about using Promise polyfill for older browsers --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c283b0a..80daca5 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ map.addControl(directions, 'top-left'); Live example: https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/ +**If you are supporting older browsers, you will need a Promise polyfill.** [es6-promise](https://github.com/stefanpenner/es6-promise) is a good one, if you're uncertain. + ### Deeper dive See [API.md](https://github.com/mapbox/mapbox-gl-directions/blob/master/API.md) for complete reference. From 1536042c35616992eecba59bfec31b2e7418b1a7 Mon Sep 17 00:00:00 2001 From: Mal Wood-Santoro Date: Tue, 1 Sep 2020 09:36:47 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 80daca5..74c159a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ map.addControl(directions, 'top-left'); Live example: https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/ -**If you are supporting older browsers, you will need a Promise polyfill.** [es6-promise](https://github.com/stefanpenner/es6-promise) is a good one, if you're uncertain. +**If you are supporting older browsers, you will need to use a polyfill.** We recommend working with [@babel/polyfill](https://babeljs.io/docs/en/babel-polyfill). ### Deeper dive