alpha release build 0.3.3

This commit is contained in:
刘浩远 2020-06-21 14:51:28 +08:00
parent 02c13cffcc
commit 7ba59c410b
3 changed files with 4 additions and 8 deletions

View File

@ -29,7 +29,7 @@ If you are using macOS or an older version of Windows, you can also [get Fluent
### Contribute
Make Fluent Reader better by reporting bugs or opening feature requests through [GitHub issues](https://github.com/yang991178/fluent-reader/issues).
Help make Fluent Reader better by reporting bugs or opening feature requests through [GitHub issues](https://github.com/yang991178/fluent-reader/issues).
You can also help internationalize the app by providing [translations into additional languages](https://github.com/yang991178/fluent-reader/tree/master/src/scripts/i18n).
Refer to the repo of [react-intl-universal](https://github.com/alibaba/react-intl-universal) to get started on internationalization.

View File

@ -1,6 +1,6 @@
{
"name": "fluent-reader",
"version": "0.3.2",
"version": "0.3.3",
"description": "A simplistic, modern desktop RSS reader",
"main": "./dist/electron.js",
"scripts": {

View File

@ -31,7 +31,6 @@ type ArticleState = {
class Article extends React.Component<ArticleProps, ArticleState> {
webview: Electron.WebviewTag
shouldRefocus = false
constructor(props) {
super(props)
@ -107,7 +106,6 @@ class Article extends React.Component<ArticleProps, ArticleState> {
if (input.type === "keyDown") {
switch (input.key) {
case "Escape":
this.shouldRefocus = true
this.props.dismiss()
break
case "ArrowLeft":
@ -160,10 +158,8 @@ class Article extends React.Component<ArticleProps, ArticleState> {
}
componentWillUnmount = () => {
if (this.shouldRefocus) {
let refocus = document.querySelector(`#refocus>div[data-iid="${this.props.item._id}"]`) as HTMLElement
if (refocus) refocus.focus()
}
let refocus = document.querySelector(`#refocus>div[data-iid="${this.props.item._id}"]`) as HTMLElement
if (refocus) refocus.focus()
}
openInBrowser = () => {