Skip to content

Commit 1b59612

Browse files
hvoortHuub van der Voort
authored andcommitted
refactor: queryselector based on anchor in providers section
Signed-off-by: Huub van der Voort <gitlab@hvdvoort.nl>
1 parent f4df801 commit 1b59612

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/templates/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div class="theme-panel">
44
<h2 class="theme-heading">Log in to {{ issuer }} </h2>
5-
<div>
5+
<div id="providers">
66
{{ range $c := .Connectors }}
77
<div class="theme-form-row">
88
<a href="{{ $c.URL }}" target="_self">
@@ -18,7 +18,7 @@ <h2 class="theme-heading">Log in to {{ issuer }} </h2>
1818

1919
<script type="text/javascript">
2020
if (window.location.hash) {
21-
var buttons = document.querySelectorAll('div.theme-form-row a');
21+
var buttons = document.querySelectorAll('#providers a');
2222
buttons.forEach(function(button) {
2323
button.href = button.href + window.location.hash;
2424
});

0 commit comments

Comments
 (0)