Skip to content

Commit f65ebd4

Browse files
cleanup
1 parent 95ff8f8 commit f65ebd4

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

uitools/import/Esri/ArcGISRuntime/Toolkit/AuthenticationView.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ Item {
7171
const component = internal.viewNameForChallengeType(controller.currentChallengeType);
7272
if (component) {
7373
const incubator = component.incubateObject(authenticationView);
74-
if (incubator.status === Component.Ready)
75-
{
74+
if (incubator.status === Component.Ready) {
7675
incubator.object.open();
7776
} else {
7877
incubator.onStatusChanged = function(status) {

uitools/import/Esri/ArcGISRuntime/Toolkit/OAuth2View.qml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,13 @@ Dialog {
124124
\brief Fill and accept the username and password
125125
*/
126126
function applyUsernameAndPassword(username, password) {
127-
const js = `setTimeout(function() { document.getElementById('user_username').value = '${username}'; document.getElementById('user_password').value = '${password}'; document.getElementById('oauth').submit(); }, 1000);`;
127+
const js = `
128+
setTimeout(function() {
129+
document.getElementById('user_username').value = '${username}';
130+
document.getElementById('user_password').value = '${password}';
131+
document.getElementById('oauth').submit();
132+
}, 1000);
133+
`;
128134
webView.runJavaScript(js);
129135
}
130136
}

0 commit comments

Comments
 (0)