From 59bbd33a55a8857a2698c358c8ad63e421ea73d0 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 14 Jan 2016 09:29:47 +0530 Subject: [PATCH] reload if oml restarts between sending out html and connecting to ws --- static/js/oml.update.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/oml.update.js b/static/js/oml.update.js index f8a228d..5bb9a22 100644 --- a/static/js/oml.update.js +++ b/static/js/oml.update.js @@ -28,6 +28,8 @@ if (name == 'updatestatus') { update.status.innerHTML = data.status; update.reload = data.reload; + } else if (name == 'status') { + reload(); // oml is running } else { console.log(name, data); }