squiggles
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 33s Details

This commit is contained in:
Ladd Hoffman 2024-04-25 18:47:38 -05:00
parent 5b086aab9d
commit e4277a229b
1 changed files with 2 additions and 6 deletions

View File

@ -255,7 +255,7 @@ function Widget() {
useEffect(() => {
console.log('window.location', window.location);
widgetApi.current = new WidgetApi('50aaf929-a90d-4507-9ecc-cd0620d1c780');
widgetApi.current = widgetApi.current ?? new WidgetApi('50aaf929-a90d-4507-9ecc-cd0620d1c780');
console.log('widget api', widgetApi.current);
@ -275,10 +275,6 @@ function Widget() {
});
widgetApi.current.start();
// window.widgetApiPromise.then((api) => {
// console.log('widgetApi promise resolved', api);
// widgetApi.current = api;
// });
}, []);
/* -------------------------------------------------------------------------------- */
@ -367,7 +363,7 @@ function Widget() {
const registerMatrixIdentity = async () => {
const sendMessageCapability = WidgetEventCapability.forRoomEvent(
EventDirection.Send,
'm.message',
'm.room.message',
);
widgetApi.current.requestCapability(sendMessageCapability);
await widgetApi.current.updateRequestedCapabilities();