Skip to content

Commit 63e36ee

Browse files
refactor: enhance event logging for Plug SDK integration in main application
1 parent 7b884bc commit 63e36ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

custom-implementation/src/main.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ const render = async () => {
119119
(window as any).plugSDK.onEvent((payload: any) => {
120120
switch (payload.type) {
121121
case "ON_PLUG_WIDGET_READY":
122+
console.log("ON_PLUG_WIDGET_READY");
122123
(window as any).plugSDK.initSearchAgent();
123124
document.addEventListener("keydown", function (event) {
124125
if (event.key === "/") {
126+
console.log("KEYDOWN");
125127
event.preventDefault();
126128
(window as any).plugSDK.toggleSearchAgent();
127129
}

0 commit comments

Comments
 (0)