simplify...
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 26s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 26s
Details
This commit is contained in:
parent
8bb9f6b41e
commit
466be6dacd
|
@ -253,10 +253,10 @@ function Widget() {
|
|||
useEffect(() => {
|
||||
console.log('window.location', window.location);
|
||||
|
||||
window.widgetApiPromise.then((api) => {
|
||||
console.log('widgetApi promise resolved', api);
|
||||
widgetApi.current = api;
|
||||
});
|
||||
// window.widgetApiPromise.then((api) => {
|
||||
// console.log('widgetApi promise resolved', api);
|
||||
// widgetApi.current = api;
|
||||
// });
|
||||
}, []);
|
||||
|
||||
/* -------------------------------------------------------------------------------- */
|
||||
|
|
|
@ -7,12 +7,12 @@ import {
|
|||
createBrowserRouter,
|
||||
RouterProvider,
|
||||
} from 'react-router-dom';
|
||||
import { WidgetApiImpl } from '@matrix-widget-toolkit/api';
|
||||
// import { WidgetApiImpl } from '@matrix-widget-toolkit/api';
|
||||
|
||||
import WebApp from './WebApp';
|
||||
import Widget from './Widget';
|
||||
|
||||
window.widgetApiPromise = WidgetApiImpl.create({});
|
||||
// window.widgetApiPromise = WidgetApiImpl.create({});
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue