squiggles
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 33s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 33s
Details
This commit is contained in:
parent
5b086aab9d
commit
e4277a229b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue