mirror of
https://github.com/portainer/portainer.git
synced 2025-08-06 14:25:31 +02:00
fix(webhook) remove NaN fom webhook url EE-5373 (#8816)
This commit is contained in:
parent
56d6dfe02e
commit
67f8e8f3c2
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ function getBaseUrl() {
|
||||||
const port = parseInt(window.location.port, 10);
|
const port = parseInt(window.location.port, 10);
|
||||||
const displayPort =
|
const displayPort =
|
||||||
(protocol === 'http' && port === 80) ||
|
(protocol === 'http' && port === 80) ||
|
||||||
(protocol === 'https' && port === 443)
|
(protocol === 'https' && port === 443) ||
|
||||||
|
Number.isNaN(port)
|
||||||
? ''
|
? ''
|
||||||
: `:${port}`;
|
: `:${port}`;
|
||||||
return `${protocol}://${hostname}${displayPort}${baseHref()}`;
|
return `${protocol}://${hostname}${displayPort}${baseHref()}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue