Prettify progress bar and start in indeterminate state
Change-Id: Idaef58eab8f93d9dfd25216414f3181934c68df0
diff --git a/plugin/src/main/resources/assets/export.js b/plugin/src/main/resources/assets/export.js
index bc4b6c2..eef6ad0 100644
--- a/plugin/src/main/resources/assets/export.js
+++ b/plugin/src/main/resources/assets/export.js
@@ -118,8 +118,6 @@
sse.addEventListener('Process', function (e) {
prog.style.display = "block";
if (e.data == "init") {
- prog.value = 1;
- prog.textualData = "1%";
window.Plugin.resize();
}
else if (e.data == 'done') {
@@ -127,6 +125,7 @@
prog.value = 100;
prog.textualData = "100%";
+ // Relocate to new target
if (relocationURL != null)
location.href = relocationURL.href;
}