summaryrefslogtreecommitdiff
path: root/backend/modules/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'backend/modules/frontend')
-rw-r--r--backend/modules/frontend7
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/modules/frontend b/backend/modules/frontend
index 8c6c87c..0463863 100644
--- a/backend/modules/frontend
+++ b/backend/modules/frontend
@@ -19,3 +19,10 @@ function send_error()
return 1
}
+function emit_progress()
+{
+ percent=$1
+ [ "$percent" -gt 100 ] && percent=100
+ send progress "$percent"
+}
+