fix: Fixes loading recommendedBrowsers page. (#11465)

* fix: Fixes loading recommendedBrowsers page.

Fixes loading the page and its resources when using html base (cdn).
This commit is contained in:
Дамян Минков 2022-04-29 12:02:05 -05:00 committed by GitHub
parent e3f3c00c06
commit 7cd5708ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@
// redirected to a page that is known to have no newer js syntax.
if (window.navigator.userAgent.match(/(MSIE|Trident)/)) {
var roomName = encodeURIComponent(window.location.pathname);
window.location.href = "static/recommendedBrowsers.html" + "?room=" + roomName;
window.location.pathname = 'static/recommendedBrowsers.html';
}
window.indexLoadedTime = window.performance.now();

View File

@ -15,7 +15,7 @@ class DefaultUnsupportedDesktopBrowser extends Component {
* @returns {void}
*/
componentDidMount() {
window.location.href = '/static/recommendedBrowsers.html';
window.location.pathname = 'static/recommendedBrowsers.html';
}
/**