mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 13:23:04 +01:00
Made handling of wrong base URL more graceful
This commit is contained in:
5
resources/js/index.js
vendored
5
resources/js/index.js
vendored
@@ -33,9 +33,6 @@ export default class Index extends Component {
|
||||
loading: false,
|
||||
redirect: true,
|
||||
});
|
||||
if(window.location.pathname != window.config.base) {
|
||||
window.location.href = window.config.base;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -49,7 +46,7 @@ export default class Index extends Component {
|
||||
<Loader />
|
||||
);
|
||||
} else {
|
||||
if(baseSet) {
|
||||
if(baseSet && window.config.base) {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<Route render={(props) => (<ToastContainer />)} />
|
||||
|
||||
Reference in New Issue
Block a user