Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
close #1735
  • Loading branch information
KochiyaOcean committed Feb 21, 2018
1 parent 229fa75 commit 24665f8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions views/components/info/control.es
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class PoiControl extends Component {
extend: false,
}
handleCapturePage = () => {
const bound = $('kan-game webview').getBoundingClientRecthis.props.t()
const bound = $('kan-game webview').getBoundingClientRect()
const rect = {
x: Math.ceil(bound.left),
y: Math.ceil(bound.top),
Expand Down Expand Up @@ -104,10 +104,10 @@ export class PoiControl extends Component {
}
}
handleSetMuted = () => {
config.sethis.props.t('poi.content.muted', !this.props.muted)
config.set('poi.content.muted', !this.props.muted)
}
handleSetEditable = () => {
config.sethis.props.t('poi.layouteditable', !this.props.editable)
config.set('poi.layouteditable', !this.props.editable)
}
handleOpenDevTools = () => {
openFocusedWindowDevTools()
Expand All @@ -116,11 +116,11 @@ export class PoiControl extends Component {
$('kan-game webview').openDevTools({detach: true})
}
handleJustifyLayout = (e) => {
window.dispatchEventhis.props.t(new Event('resize'))
e.preventDefaulthis.props.t()
window.dispatchEvent(new Event('resize'))
e.preventDefault()
}
handleUnlockWebview = () => {
$('kan-game webview').executeJavaScripthis.props.t('window.unalign()')
$('kan-game webview').executeJavaScript('window.unalign()')
}
handleRefreshGameDialog = (e) => {
if (e.shiftKey) {
Expand Down Expand Up @@ -180,10 +180,10 @@ export class PoiControl extends Component {
],
() => {touchBarReset()}
)
refreshconfirm(this.props.t('Refresh page'),this.props.t('Reload Flash'))
refreshconfirm(this.props.t('Refresh page'), this.props.t('Reload Flash'))
break
case 'adjust':
window.dispatchEventhis.props.t(new Event('resize'))
window.dispatchEvent(new Event('resize'))
break
case 'unlock':
this.handleUnlockWebview()
Expand Down

0 comments on commit 24665f8

Please sign in to comment.