Skip to content

Commit 932055c

Browse files
committed
CREDENTIAL: Fix the demo now that Chrome is fixed. :)
1 parent 578bcb2 commit 932055c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demos/credential-management/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ <h2>Sign Up!</h2>
7373
document.querySelector('#signup').addEventListener('submit', function (e) {
7474
if (navigator.credentials) {
7575
console.log("Creating credentials!");
76-
var c = new PasswordCredential(
77-
document.querySelector('#username-signup').value,
78-
document.querySelector('#password-signup').value
79-
);
76+
var c = new PasswordCredential({
77+
id: document.querySelector('#username-signup').value,
78+
password: document.querySelector('#password-signup').value
79+
});
8080
navigator.credentials.store(c).then(function () {
8181
console.log("Stored credential!");
8282
});

0 commit comments

Comments
 (0)