fix(webhook) remove NaN fom webhook url EE-5373 (#8816)

pull/8836/head
cmeng 2 years ago committed by GitHub
parent 56d6dfe02e
commit 67f8e8f3c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,8 @@ function getBaseUrl() {
const port = parseInt(window.location.port, 10);
const displayPort =
(protocol === 'http' && port === 80) ||
(protocol === 'https' && port === 443)
(protocol === 'https' && port === 443) ||
Number.isNaN(port)
? ''
: `:${port}`;
return `${protocol}://${hostname}${displayPort}${baseHref()}`;

Loading…
Cancel
Save