Skip to content

Commit 46df939

Browse files
committed
remove OSSAnnounceModal
1 parent 744907a commit 46df939

3 files changed

Lines changed: 1 addition & 40 deletions

File tree

browser/main/MainPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class MainContainer extends React.Component {
4141
onWheel={(e) => this.handleWheel(e)}
4242
>
4343
{this.state.updateAvailable ? (
44-
<button onClick={this.updateApp} className='appUpdateButton'><i className='fa fa-cloud-download'/> Update available!</button>
44+
<button onClick={this.updateApp} className='appUpdateButton'><i className='fa fa-cloud-download'/> Update available!</button>
4545
) : null}
4646
<HomePage/>
4747
</div>

browser/main/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import store from './store'
44
import React from 'react'
55
import ReactDOM from 'react-dom'
66
require('!!style!css!stylus?sourceMap!../styles/main/index.styl')
7-
import { openModal } from 'browser/lib/modal'
8-
import OSSAnnounceModal from './modal/OSSAnnounceModal'
97
import activityRecord from 'browser/lib/activityRecord'
108
import fetchConfig from '../lib/fetchConfig'
119
const electron = require('electron')
@@ -84,12 +82,4 @@ ReactDOM.render((
8482
), el, function () {
8583
let loadingCover = document.getElementById('loadingCover')
8684
loadingCover.parentNode.removeChild(loadingCover)
87-
let status = JSON.parse(localStorage.getItem('status'))
88-
if (status == null) status = {}
89-
90-
if (!status.ossAnnounceWatched) {
91-
openModal(OSSAnnounceModal)
92-
status.ossAnnounceWatched = true
93-
localStorage.setItem('status', JSON.stringify(status))
94-
}
9585
})

browser/main/modal/OSSAnnounceModal.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)