diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-21 14:02:58 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-21 14:02:58 +0000 |
commit | 5d6ae00155ab3af3b05f9c6a6c687861a5dc4293 (patch) | |
tree | f31cfe0b34c299005a14a12dc407358e1e6726dd | |
parent | 0896840ce13ca93bbd4b54810c89ef747a113db6 (diff) | |
download | netsurf-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.js | 4 |
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); |