Don't use endsWith as it'll break on old node

It's a lodash template though, so use lodash
pull/3578/head
David Baker 2017-04-07 14:57:02 +01:00
parent b65466bc4f
commit ec870039bf
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
<% for (var i=0; i < htmlWebpackPlugin.files.js.length; i++) {
// Not a particularly graceful way of not putting the indexeddb worker script
// into the main page
if (htmlWebpackPlugin.files.js[i].endsWith('indexeddb-worker.js')) {
if (_.endsWith(htmlWebpackPlugin.files.js[i], 'indexeddb-worker.js')) {
%>
<script>
window.vector_indexeddb_worker_script = '<%= htmlWebpackPlugin.files.js[i] %>';