You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/credential-management/script.js
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,11 @@ if (navigator.credentials) {
10
10
password: true,
11
11
suppressUI: true
12
12
}).then(processResponse);
13
+
}else{
14
+
varsection=document.createElement('section');
15
+
section.innerHTML="<p><code>navigator.credentials</code> is not available! Have you enabled the feature in your browser? (Visit <code>chrome://flags/#enable-credential-manager-api</code> in Chrome, for example.)</p>";
0 commit comments