diff --git a/skel/template.html.erb b/skel/template.html.erb index 4da2057..0f240a4 100644 --- a/skel/template.html.erb +++ b/skel/template.html.erb @@ -15,10 +15,12 @@ log: function(msg) { JHW.stdout.puts(msg) } } - window._onload = window.onload + window._onload = window.onload; window.onload = function() { - if (window._onload) { window._onload() } + if (window._onload && (window._onload != window.onload)) { + window._onload(); + } if (window.JHW) { jasmine.getEnv().addReporter(new jasmine.HeadlessConsoleReporter());