mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed site domain for FirstPromoter
no issue Removes http(s) and trailing slashes from FirstPromoter site URL
This commit is contained in:
parent
569c94272c
commit
a09ff2ca5c
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ export const getSupportAddress = ({site}) => {
|
|||
|
||||
export const getSiteDomain = ({site}) => {
|
||||
try {
|
||||
return (new URL(site.url)).origin;
|
||||
return ((new URL(site.url)).origin).replace(/^http(s?):\/\//, '').replace(/\/$/, '');
|
||||
} catch (e) {
|
||||
return site.url.replace(/^http(s?):\/\//, '').replace(/\/$/, '');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue