widgetId from params
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 37s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 37s
Details
This commit is contained in:
parent
e4277a229b
commit
039fc85fff
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue