Skip to content

Commit ec87003

Browse files
committed
Don't use endsWith as it'll break on old node
It's a lodash template though, so use lodash
1 parent b65466b commit ec87003

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/vector/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<% for (var i=0; i < htmlWebpackPlugin.files.js.length; i++) {
4141
// Not a particularly graceful way of not putting the indexeddb worker script
4242
// into the main page
43-
if (htmlWebpackPlugin.files.js[i].endsWith('indexeddb-worker.js')) {
43+
if (_.endsWith(htmlWebpackPlugin.files.js[i], 'indexeddb-worker.js')) {
4444
%>
4545
<script>
4646
window.vector_indexeddb_worker_script = '<%= htmlWebpackPlugin.files.js[i] %>';

0 commit comments

Comments
 (0)