From ec870039bfdf0ea2424417671957ec09e27c8e85 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 7 Apr 2017 14:57:02 +0100 Subject: [PATCH] Don't use endsWith as it'll break on old node It's a lodash template though, so use lodash --- src/vector/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/index.html b/src/vector/index.html index fa6c6e19..331bf684 100644 --- a/src/vector/index.html +++ b/src/vector/index.html @@ -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')) { %>