feat(trello): add trello integration (#1380)
This commit is contained in:
@@ -47,7 +47,7 @@ export default function AddAppConnection(
|
||||
if (window.opener) {
|
||||
window.opener.postMessage({
|
||||
source: 'automatisch',
|
||||
payload: window.location.search,
|
||||
payload: { search: window.location.search, hash: window.location.hash },
|
||||
});
|
||||
window.close();
|
||||
}
|
||||
|
@@ -25,9 +25,16 @@ const processMutation = async (
|
||||
};
|
||||
|
||||
const parseUrlSearchParams = (event: any) => {
|
||||
const searchParams = new URLSearchParams(event.data.payload);
|
||||
const searchParams = new URLSearchParams(event.data.payload.search);
|
||||
const hashParams = new URLSearchParams(event.data.payload.hash.substring(1));
|
||||
|
||||
return getObjectOfEntries(searchParams.entries());
|
||||
const searchParamsObject = getObjectOfEntries(searchParams.entries());
|
||||
const hashParamsObject = getObjectOfEntries(hashParams.entries());
|
||||
|
||||
return {
|
||||
...hashParamsObject,
|
||||
...searchParamsObject,
|
||||
};
|
||||
};
|
||||
|
||||
function getObjectOfEntries(iterator: any) {
|
||||
|
Reference in New Issue
Block a user