From aeeabb1263985c4a3a0d05348c36a8a00f1254c1 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Wed, 26 Sep 2018 10:44:12 +0800 Subject: [PATCH] Disable offline temporarily --- site/theme/template/Layout/index.jsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/site/theme/template/Layout/index.jsx b/site/theme/template/Layout/index.jsx index e3e19ec7b1..44979b198f 100644 --- a/site/theme/template/Layout/index.jsx +++ b/site/theme/template/Layout/index.jsx @@ -6,17 +6,12 @@ import { addLocaleData, IntlProvider } from 'react-intl'; import 'moment/locale/zh-cn'; import { LocaleProvider } from 'antd'; import zhCN from 'antd/lib/locale-provider/zh_CN'; -import OfflineRuntime from '@yesmeck/offline-plugin/runtime'; import Header from './Header'; import Footer from './Footer'; import enLocale from '../../en-US'; import cnLocale from '../../zh-CN'; import * as utils from '../utils'; -if (typeof window !== 'undefined') { - OfflineRuntime.install(); -} - if (typeof window !== 'undefined') { /* eslint-disable global-require */ require('../../static/style');