Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
always adding engine_url to the url
Browse files Browse the repository at this point in the history
  • Loading branch information
Helene Rigner committed Apr 15, 2019
1 parent 5faad3d commit 0afb1cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export default function App() {
);
}

if (!new URLSearchParams(document.location.search).get('engine_url')) {
if (window.location) {
const URLobject = new URL(window.location.href);
window.location.assign(`${URLobject.protocol}//${window.location.host}?engine_url=${config.url}`);
}
}

if (!global || (!app && appState !== 'pending')) {
return (
<Splash
Expand Down

0 comments on commit 0afb1cd

Please sign in to comment.