Skip to content

Commit 61c5211

Browse files
format
1 parent 12f5ef5 commit 61c5211

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

src/lib/auth.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,20 @@ class AuthService {
4848
cordova.exec(resolve, reject, "Authenticator", action, args);
4949
});
5050
}
51+
5152
async openLoginUrl() {
5253
const url = "https://acode.app/login?redirect=app";
5354

5455
try {
5556
await new Promise((resolve, reject) => {
56-
CustomTabs.open(
57-
url,
58-
{ showTitle: true },
59-
resolve,
60-
reject
61-
);
57+
CustomTabs.open(url, { showTitle: true }, resolve, reject);
6258
});
6359
} catch (error) {
6460
console.error("CustomTabs failed, opening system browser.", error);
6561
system.openInBrowser(url);
6662
}
6763
}
6864

69-
70-
71-
7265
async logout() {
7366
try {
7467
await this._exec("logout");
@@ -143,8 +136,8 @@ class AuthService {
143136
];
144137
ctx.fillStyle =
145138
colors[
146-
name.split("").reduce((acc, char) => acc + char.charCodeAt(0), 0) %
147-
colors.length
139+
name.split("").reduce((acc, char) => acc + char.charCodeAt(0), 0) %
140+
colors.length
148141
];
149142
ctx.fillRect(0, 0, 100, 100);
150143

0 commit comments

Comments
 (0)