mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
adjust example code (#5332)
This commit is contained in:
parent
c5a54e44bc
commit
d4afc9890d
1 changed files with 2 additions and 0 deletions
|
@ -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)`);
|
||||
|
|
Loading…
Reference in a new issue