forked from newthuhole/hole_thu_frontend
add imasugu
This commit is contained in:
@@ -5,6 +5,8 @@ import {Sidebar} from './Sidebar';
|
||||
import {PressureHelper} from './PressureHelper';
|
||||
import {TokenCtx} from './UserAction';
|
||||
|
||||
import ImasuguApp from './imasugu/src/App';
|
||||
|
||||
function DeprecatedAlert(props) {
|
||||
if(['pkuhelper.com','www.pkuhelper.com','webhole.xmcp.ml','127.0.0.1','localhost'].indexOf(document.domain)===-1)
|
||||
return (
|
||||
@@ -79,6 +81,13 @@ class App extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
if(window.location.search.match(/[?&]imasugu($|&)/)) {
|
||||
document.body.style.backgroundColor='white';
|
||||
return (
|
||||
<ImasuguApp />
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<TokenCtx.Provider value={{
|
||||
value: this.state.token,
|
||||
|
||||
1
src/imasugu
Submodule
1
src/imasugu
Submodule
Submodule src/imasugu added at d5a1464b23
Reference in New Issue
Block a user