|
|
@@ -43,12 +43,6 @@ export default class AppContainer extends Container {
|
|
|
const userAgent = window.navigator.userAgent.toLowerCase();
|
|
|
this.isMobile = /iphone|ipad|android/.test(userAgent);
|
|
|
|
|
|
- this.isIos = /iphone|ipad/.test(userAgent);
|
|
|
- const appVersion = window.navigator.appVersion.toLowerCase(); // appVersion
|
|
|
- if (appVersion <= 12.5) {
|
|
|
- this.setState({ isOldIos: true });
|
|
|
- }
|
|
|
-
|
|
|
const currentUserElem = document.getElementById('growi-current-user');
|
|
|
if (currentUserElem != null) {
|
|
|
this.currentUser = JSON.parse(currentUserElem.textContent);
|
|
|
@@ -118,27 +112,6 @@ export default class AppContainer extends Container {
|
|
|
this.injectToWindow();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- // ここから
|
|
|
- // to check the client app ios version
|
|
|
-
|
|
|
- isOldVerion(version) {
|
|
|
- this.appVersion = this;
|
|
|
- if (version <= this.appVersion.indexOf('12.5')) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- isOldIosVersion() {
|
|
|
- if (this.isIos && this.isOldVerion()) {
|
|
|
- this.setState({ isOldIos: true });
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // ここまで
|
|
|
-
|
|
|
-
|
|
|
async initMediaQueryForColorScheme() {
|
|
|
const switchStateByMediaQuery = async(mql) => {
|
|
|
const preferDarkMode = mql.matches;
|