mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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] %>';
|
||||
|
|
Loading…
Reference in a new issue