From cfe38d42c82f80457808a191ddbe9f3ee4c64d3a Mon Sep 17 00:00:00 2001 From: xmcp Date: Tue, 2 Apr 2019 22:59:09 +0800 Subject: [PATCH] add imasugu --- .gitmodules | 3 +++ src/App.js | 9 +++++++++ src/imasugu | 1 + 3 files changed, 13 insertions(+) create mode 100644 .gitmodules create mode 160000 src/imasugu diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..9564edae --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/imasugu"] + path = src/imasugu + url = https://github.com/xmcp/imasugu diff --git a/src/App.js b/src/App.js index 180d8ead..8e5e0f4e 100644 --- a/src/App.js +++ b/src/App.js @@ -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 ( + + ); + } + return (