summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-21 14:02:58 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-21 14:02:58 +0000
commit5d6ae00155ab3af3b05f9c6a6c687861a5dc4293 (patch)
treef31cfe0b34c299005a14a12dc407358e1e6726dd
parent0896840ce13ca93bbd4b54810c89ef747a113db6 (diff)
downloadnetsurf-test-5d6ae00155ab3af3b05f9c6a6c687861a5dc4293.tar.gz
netsurf-test-5d6ae00155ab3af3b05f9c6a6c687861a5dc4293.tar.bz2
setTimeout() args are the other way around
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--cgi-bin/and-then-js-async-cb-adds-timeout.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi-bin/and-then-js-async-cb-adds-timeout.js b/cgi-bin/and-then-js-async-cb-adds-timeout.js
index e232561..9b78c88 100644
--- a/cgi-bin/and-then-js-async-cb-adds-timeout.js
+++ b/cgi-bin/and-then-js-async-cb-adds-timeout.js
@@ -3,9 +3,9 @@
*/
/* After one second */
-setTimeout(1000, function() {
+setTimeout(function() {
/* Add a <script> tag */
var script = document.createElement("SCRIPT");
script.src = "https://test.netsurf-browser.org/html/hello-world.js";
document.body.appendChild(script);
-});
+}, 1000);