Revert "Remove hashtag from nonHashedUrl"

This reverts commit 850e9e7c1d.
This commit is contained in:
yuqiuw
2021-06-10 11:36:31 -05:00
committed by GitHub
parent 7dd6a430a6
commit 0bdb4c906f
+1 -1
View File
@@ -20,7 +20,7 @@ type StreamArgs = {
}
const {hostname, href, hash, search} = window.location;
const nonHashedUrl = href.replace(hash, '').replace(search, '').replace('#', '');
const nonHashedUrl = href.replace(hash, '').replace(search, '');
const isDev = process.env.NODE_ENV !== 'production';
const BASE_HTTP_URL = isDev && hostname === 'localhost' ? 'http://localhost:4654' : nonHashedUrl;
const BASE_WS_URL = BASE_HTTP_URL.replace('http', 'ws');