summary refs log tree commit diff stats
path: root/nimdoc/rst2html/expected/rst_examples.html
diff options
context:
space:
mode:
Diffstat (limited to 'nimdoc/rst2html/expected/rst_examples.html')
-rw-r--r--nimdoc/rst2html/expected/rst_examples.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/nimdoc/rst2html/expected/rst_examples.html b/nimdoc/rst2html/expected/rst_examples.html
index 8a08e8df5..0b9207688 100644
--- a/nimdoc/rst2html/expected/rst_examples.html
+++ b/nimdoc/rst2html/expected/rst_examples.html
@@ -56,10 +56,12 @@ function main() {
     }
   }
 }
+
+window.addEventListener('DOMContentLoaded', main);
 </script>
 
 </head>
-<body onload="main()">
+<body>
 <div class="document" id="documentId">
   <div class="container">
     <h1 class="title">Not a Nim Manual</h1>