mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-23 23:42:56 +02:00
Request Array.prototype.includes polyfill (#1287)
Slate uses `Array.prototype.includes` in at least one place: https://github.com/ianstormtaylor/slate/blob/b558872/packages/slate/src/schemas/core.js#L62 So, request an `Array.prototype.includes` polyfill from polyfill.io if the user's browser needs it, which is the case with IE 11. Also requests minified JavaScript, since this code is used for the slatejs.org website, and there's no need to serve non-minified code there.
This commit is contained in:
committed by
Ian Storm Taylor
parent
b558872b56
commit
092b8a0e5d
@@ -9,7 +9,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<main></main>
|
||||
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=es6"></script>
|
||||
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,Array.prototype.includes"></script>
|
||||
<script src="build.prod.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user