PLT-6368 Changed client to always use window.location.origin over SiteURL (3.7) (#6191)

This commit is contained in:
Harrison Healey
2017-04-21 17:28:11 +01:00
committed by George Goldberg
parent fb325cc339
commit e1c140f949
-4
View File
@@ -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;
}