From 1a10b45ba13cae00f9c81c5719191b0ab9b7ab55 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 19 Mar 2013 17:27:38 +0400 Subject: [PATCH] src/nhttpd/web/Y_Tools_Screenshot.yhtm: remove window.setTimeout, it seems fbshot executed in sync, not in background ? so not clear why to wait here after screenshot is ready. video screenshot now also not async Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8f128cc5127b2b55ac304e114846e26b9d4ab297 Author: [CST] Focus Date: 2013-03-19 (Tue, 19 Mar 2013) --- src/nhttpd/web/Y_Tools_Screenshot.yhtm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nhttpd/web/Y_Tools_Screenshot.yhtm b/src/nhttpd/web/Y_Tools_Screenshot.yhtm index 2d6c836cc..6adee9bc7 100644 --- a/src/nhttpd/web/Y_Tools_Screenshot.yhtm +++ b/src/nhttpd/web/Y_Tools_Screenshot.yhtm @@ -48,7 +48,7 @@ function do_snapshot() { else loadSyncURL("/control/screenshot?name="+filename+"&osd="+enableOSD+"&video="+enableVideo); - window.setTimeout("do_showshot('"+filename+"');", (enableVideo == 1) ? 6500 : 3000); + do_showshot(filename); } function do_showshot(_filename) { if (_filename == "")