Skip to content

Commit 3fcaafd

Browse files
committed
Merge branch 'hotfix/0.22.6'
2 parents 6194d24 + 939ea4b commit 3fcaafd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/templates/page-mailto-generator.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
</div> <!-- application -->
3333

3434
<script>
35-
const input = document.getElementById('mail')
36-
const output = document.getElementById('output')
35+
const input = document.querySelector('input[name="mail"]');
36+
const output = document.getElementById('output');
3737

3838
input.addEventListener('input', function() {
3939
const addressInput = input.value;
40-
let addressOutput = ''
40+
let addressOutput = '';
4141

4242
for (let character of addressInput) {
43-
addressOutput += character.charCodeAt() + ';'
43+
addressOutput += character.charCodeAt() + ';';
4444
}
4545
addressOutput = addressOutput.slice(0, -1);
4646

0 commit comments

Comments
 (0)