diff options
author | samhed <samuel@cendio.se> | 2016-04-27 00:41:16 +0200 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2016-05-27 16:12:31 +0200 |
commit | a20a8987650a7a3080706fe1c3678cf4f2e855ad (patch) | |
tree | 7d8b54f8edea40caa1f1af63c1a26e471d4ec3fd | |
parent | 4d26f58e0d711144ec6bcdabf26811db1c457238 (diff) | |
download | novnc-a20a8987650a7a3080706fe1c3678cf4f2e855ad.tar.gz |
Timeouts should always use anonymous functions
While you CAN pass functions in strings, it is not the correct way
of doing it. The browsers are just being nice.
-rw-r--r-- | include/ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ui.js b/include/ui.js index 7a8600a..3146ae6 100644 --- a/include/ui.js +++ b/include/ui.js @@ -728,7 +728,7 @@ var UI; UI.rfb.connect(host, port, password, path); //Close dialog. - setTimeout(UI.setBarPosition, 100); + setTimeout(function () { UI.setBarPosition; } ); $D('noVNC_logo').style.display = "none"; $D('noVNC_screen').style.display = "inline"; }, |