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

25 lines
479 B
JavaScript
Raw Normal View History

2022-10-10 12:14:25 +00:00
import { Component } from 'react'
import '../styles/main.module.css'
export default class Home extends Component {
2022-02-14 17:43:52 +00:00
constructor(props) {
super(props);
}
async componentDidMount() {
2022-10-10 12:14:25 +00:00
const urlSearchParams = new URLSearchParams(window.location.search);
const params = Object.fromEntries(urlSearchParams.entries());
if (params.id) {
document.location.href = "/overlay/"+ window.location.search
}
}
render() {
2022-10-10 12:14:25 +00:00
return <div className={main}>
2022-10-10 08:34:38 +00:00
hi
2022-10-10 12:14:25 +00:00
</div>
}
}