fix: Fixes loading recommendedBrowsers page. (#11465)

* fix: Fixes loading recommendedBrowsers page.

Fixes loading the page and its resources when using html base (cdn).
pull/11471/head jitsi-meet_7262
Дамян Минков 3 years ago committed by GitHub
parent e3f3c00c06
commit 7cd5708ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      index.html
  2. 2
      react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.js

@ -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();

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

Loading…
Cancel
Save