widget wip
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 31s Details

This commit is contained in:
Ladd Hoffman 2024-04-25 14:26:03 -05:00
parent f4220cc4f9
commit 9935c70cec
1 changed files with 9 additions and 0 deletions

View File

@ -252,7 +252,16 @@ function Widget() {
useEffect(() => {
console.log('window.location', window.location);
window.addEventListener(
'message',
(event) => {
console.log('window message', event);
},
);
window.widgetApiPromise.then((api) => {
console.log('widgetApi promise resolved', api);
widgetApi.current = api;
});
}, []);