From 1464da64a66bf54aa129f626acfc783cbf382d92 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 7 Jul 2016 19:06:10 +0200 Subject: [PATCH] Add polyfills to copy/paste code --- config/examples/example.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/examples/example.html b/config/examples/example.html index 5b9ae887c9..c229c9c9cb 100644 --- a/config/examples/example.html +++ b/config/examples/example.html @@ -73,6 +73,8 @@ <head> <title>{{ title }}</title> <link rel="stylesheet" href="http://openlayers.org/en/v{{ olVersion }}/css/ol.css" type="text/css"> + <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x --> + <script src="http://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList"></script> <script src="http://openlayers.org/en/v{{ olVersion }}/build/ol.js"></script>{{#if extraHead.remote}} {{ indent extraHead.remote spaces=4 }}{{/if}}{{#if css.source}} <style>