summaryrefslogtreecommitdiff
path: root/docs/runtime/program_lifecycle.md
diff options
context:
space:
mode:
authorMax <martynmaksim.w@gmail.com>2020-05-15 17:27:38 +0300
committerGitHub <noreply@github.com>2020-05-15 10:27:38 -0400
commitd4afc9890dfa60a233167e2ea003d9e7c830ee61 (patch)
treea1081489f2d62cc6b863d6b0999845f807ce9505 /docs/runtime/program_lifecycle.md
parentc5a54e44bc0a697b45efb98d3f5d1dc751efe49f (diff)
adjust example code (#5332)
Diffstat (limited to 'docs/runtime/program_lifecycle.md')
-rw-r--r--docs/runtime/program_lifecycle.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/runtime/program_lifecycle.md b/docs/runtime/program_lifecycle.md
index c7c3c46a3..62698b35e 100644
--- a/docs/runtime/program_lifecycle.md
+++ b/docs/runtime/program_lifecycle.md
@@ -28,6 +28,8 @@ window.onunload = (e: Event): void => {
console.log(`got ${e.type} event in onunload function (main)`);
};
+console.log("log from main script");
+
// imported.ts
const handler = (e: Event): void => {
console.log(`got ${e.type} event in event handler (imported)`);