widgetId from params
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 37s Details

This commit is contained in:
Ladd Hoffman 2024-04-25 19:23:36 -05:00
parent e4277a229b
commit 039fc85fff
1 changed files with 3 additions and 1 deletions

View File

@ -254,8 +254,10 @@ function Widget() {
useEffect(() => {
console.log('window.location', window.location);
const { searchParams } = new URL(window.location.href);
const widgetId = searchParams.get('widgetId');
widgetApi.current = widgetApi.current ?? new WidgetApi('50aaf929-a90d-4507-9ecc-cd0620d1c780');
widgetApi.current = widgetApi.current ?? new WidgetApi(widgetId);
console.log('widget api', widgetApi.current);