diff options
Diffstat (limited to 'assets_src/js')
-rw-r--r-- | assets_src/js/user.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/assets_src/js/user.js b/assets_src/js/user.js index c697780..fb3ab7c 100644 --- a/assets_src/js/user.js +++ b/assets_src/js/user.js | |||
@@ -3,12 +3,11 @@ import * as dom from './lib/dom'; | |||
3 | function externalServiceClick(e) { | 3 | function externalServiceClick(e) { |
4 | var row = dom.closest(e.target, (el) => el.classList.contains('authorizable')); | 4 | var row = dom.closest(e.target, (el) => el.classList.contains('authorizable')); |
5 | if (row === null) { | 5 | if (row === null) { |
6 | alert('nada'); | ||
7 | return; | 6 | return; |
8 | } | 7 | } |
9 | var authType = row.getAttribute('data-auth-type'), | 8 | var authType = row.getAttribute('data-auth-type'), |
10 | authUrl = row.getAttribute('data-auth-url'), | 9 | authUrl = row.getAttribute('data-auth-url'), |
11 | coupleUrl = row.getAttribute('data-couple-url'); | 10 | coupleUrl = row.getAttribute('data-couple-url'); |
12 | switch (authType) { | 11 | switch (authType) { |
13 | case 'copy-paste': | 12 | case 'copy-paste': |
14 | window.open(authUrl); | 13 | window.open(authUrl); |