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:
parent
b65466bc4f
commit
ec870039bf
|
@ -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] %>';
|
||||||
|
|
Loading…
Reference in New Issue