This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-overlay/pages/index.js
2022-10-10 13:14:25 +01:00

25 lines
479 B
JavaScript

import { Component } from 'react'
import '../styles/main.module.css'
export default class Home extends Component {
constructor(props) {
super(props);
}
async componentDidMount() {
const urlSearchParams = new URLSearchParams(window.location.search);
const params = Object.fromEntries(urlSearchParams.entries());
if (params.id) {
document.location.href = "/overlay/"+ window.location.search
}
}
render() {
return <div className={main}>
hi
</div>
}
}