summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);