From b2c8ae4d0e4283bac46a15edb4d10401112d5369 Mon Sep 17 00:00:00 2001 From: tsukino <0xtsukino@gmail.com> Date: Tue, 29 Oct 2024 17:30:03 +0800 Subject: [PATCH] feat: dispatch event when cs is loaded --- src/entries/Content/content.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/entries/Content/content.ts b/src/entries/Content/content.ts index b803599f..e4eb8490 100644 --- a/src/entries/Content/content.ts +++ b/src/entries/Content/content.ts @@ -116,3 +116,5 @@ const connect = async () => { window.tlsn = { connect, }; + +window.dispatchEvent(new CustomEvent('tlsn_loaded'));