File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 17
17
< div id ="appName " class ="textLine main "> ...</ div >
18
18
< div id ="version " class ="textLine "> ...</ div >
19
19
< div id ="copyright " class ="textLine "> ...</ div >
20
- < div id ="buttons ">
21
- < button type ="submit " id ="ok "> ...</ button >
22
- </ div >
23
20
</ form >
24
21
</ div >
25
22
< script src ="about.js "> </ script >
Original file line number Diff line number Diff line change @@ -32,18 +32,14 @@ function promptRegister() {
32
32
return promptError ( error ) ;
33
33
}
34
34
35
- const okButton = document . querySelector ( '#ok' ) ;
36
-
37
- okButton . addEventListener ( 'keyup' , event => {
35
+ document . addEventListener ( 'keyup' , event => {
38
36
if ( event . key === 'Escape' ) {
39
37
promptCancel ( ) ;
40
38
}
41
39
} ) ;
42
40
43
41
document . querySelector ( '#form' ) . addEventListener ( 'submit' , promptSubmit ) ;
44
42
45
- okButton . focus ( ) ;
46
-
47
43
window . api . i18n . ready . then ( ( ) => {
48
44
const versionText = window . api . i18n . t ( 'dialog-about-version' , {
49
45
version : promptOptions . applicationVersion ,
@@ -55,8 +51,6 @@ function promptRegister() {
55
51
document . querySelector ( '#version' ) . textContent = versionText ;
56
52
document . querySelector ( '#copyright' ) . textContent = promptOptions . copyright ;
57
53
58
- okButton . textContent = window . api . i18n . t ( 'dialog-button-ok' ) ;
59
-
60
54
const height = document . querySelector ( 'body' ) . offsetHeight ;
61
55
window . api . ipc . sendSync ( 'prompt-size:' + promptId , height ) ;
62
56
} ) ;
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ async function showAboutDialog(wktApp, parentWindow) {
113
113
const preloadFile = path . join ( __dirname , 'prompt' , 'preload.js' ) ;
114
114
115
115
const WIDTH = 400 ;
116
- const HEIGHT = 234 ; // renderer will send IPC to adjust this
116
+ const HEIGHT = 186 ; // renderer will send IPC to adjust this
117
117
const MIN_HEIGHT = 120 ; // needs to be smaller than content height
118
118
119
119
return new Promise ( ( resolve , reject ) => {
You can’t perform that action at this time.
0 commit comments