fix: pass postData to new-window event (#28513)

This commit is contained in:
Jeremy Rose
2021-04-06 09:54:05 -07:00
committed by GitHub
parent 641e9337f3
commit 77dcf1020a
5 changed files with 87 additions and 19 deletions

View File

@@ -62,7 +62,7 @@ export function parseCommaSeparatedKeyValue (source: string, useSoonToBeDeprecat
for (const keyValuePair of source.split(',')) {
const [key, value] = keyValuePair.split('=').map(str => str.trim());
if (useSoonToBeDeprecatedBehaviorForBareKeys && value === undefined) {
bareKeys.push(key);
if (key) { bareKeys.push(key); }
continue;
}
parsed[key] = coerce(key, value);