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

It's a lodash template though, so use lodash
This commit is contained in:
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++) { <% for (var i=0; i < htmlWebpackPlugin.files.js.length; i++) {
// Not a particularly graceful way of not putting the indexeddb worker script // Not a particularly graceful way of not putting the indexeddb worker script
// into the main page // into the main page
if (htmlWebpackPlugin.files.js[i].endsWith('indexeddb-worker.js')) { if (_.endsWith(htmlWebpackPlugin.files.js[i], 'indexeddb-worker.js')) {
%> %>
<script> <script>
window.vector_indexeddb_worker_script = '<%= htmlWebpackPlugin.files.js[i] %>'; window.vector_indexeddb_worker_script = '<%= htmlWebpackPlugin.files.js[i] %>';