mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 21:27:40 -05:00
PLT-6368 Changed client to always use window.location.origin over SiteURL (3.7) (#6191)
This commit is contained in:
committed by
George Goldberg
parent
fb325cc339
commit
e1c140f949
@@ -18,10 +18,6 @@ export function getShortenedURL(url = '', getLength = 27) {
|
||||
}
|
||||
|
||||
export function getSiteURL() {
|
||||
if (global.mm_config.SiteURL) {
|
||||
return global.mm_config.SiteURL;
|
||||
}
|
||||
|
||||
if (window.location.origin) {
|
||||
return window.location.origin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user