Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 11ad5ed

Browse files
author
John McCambridge
committedApr 11, 2019
Remove function, make html form
1 parent 3bc27d7 commit 11ad5ed

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
 

‎packages/app/browser/src/app.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ <h4 class="title">code-server</h4>
1313
<h2 class="subtitle">
1414
Enter server password
1515
</h2>
16+
<form>
1617
<div class="mdc-text-field">
1718
<input type="password" id="password" class="mdc-text-field__input" required>
1819
<label class="mdc-floating-label" for="password">Password</label>
@@ -21,6 +22,7 @@ <h2 class="subtitle">
2122
<button id="submit" class="mdc-button mdc-button--unelevated">
2223
<span class="mdc-button__label">Enter IDE</span>
2324
</button>
25+
</form>
2426
<div id="error-display"></div>
2527
</div>
2628
</body>

‎packages/app/browser/src/app.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ submit.addEventListener("click", () => {
2828
document.cookie = `password=${password.value}`;
2929
location.reload();
3030
});
31-
password.addEventListener("keyup", (e) => {
32-
if (e.keyCode === 13) {
33-
document.cookie = `password=${password.value}`;
34-
location.reload();
35-
}
36-
});
3731

3832
/**
3933
* Notify user on load of page if previous password was unsuccessful

0 commit comments

Comments
 (0)
Please sign in to comment.