From f187a359e6e7349bc627a12f11fd0238a3e4d1b5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 6 Apr 2017 11:15:14 +0100 Subject: [PATCH] Add support for indexeddb sync in webworker --- src/vector/index.html | 15 +++++++++++++-- src/vector/index.js | 4 ++++ src/vector/indexedbd-worker.js | 26 ++++++++++++++++++++++++++ webpack.config.js | 1 + 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 src/vector/indexedbd-worker.js diff --git a/src/vector/index.html b/src/vector/index.html index e86f299647..fa6c6e19f5 100644 --- a/src/vector/index.html +++ b/src/vector/index.html @@ -37,8 +37,19 @@
- <% 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 + // into the main page + if (htmlWebpackPlugin.files.js[i].endsWith('indexeddb-worker.js')) { + %> + + <% + continue; + } + %> + <% } %>