File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ <h4 class="title">code-server</h4>
13
13
< h2 class ="subtitle ">
14
14
Enter server password
15
15
</ h2 >
16
+ < form >
16
17
< div class ="mdc-text-field ">
17
18
< input type ="password " id ="password " class ="mdc-text-field__input " required >
18
19
< label class ="mdc-floating-label " for ="password "> Password</ label >
@@ -21,6 +22,7 @@ <h2 class="subtitle">
21
22
< button id ="submit " class ="mdc-button mdc-button--unelevated ">
22
23
< span class ="mdc-button__label "> Enter IDE</ span >
23
24
</ button >
25
+ </ form >
24
26
< div id ="error-display "> </ div >
25
27
</ div >
26
28
</ body >
Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ submit.addEventListener("click", () => {
28
28
document . cookie = `password=${ password . value } ` ;
29
29
location . reload ( ) ;
30
30
} ) ;
31
- password . addEventListener ( "keyup" , ( e ) => {
32
- if ( e . keyCode === 13 ) {
33
- document . cookie = `password=${ password . value } ` ;
34
- location . reload ( ) ;
35
- }
36
- } ) ;
37
31
38
32
/**
39
33
* Notify user on load of page if previous password was unsuccessful
You can’t perform that action at this time.
0 commit comments