clientWidth isn't working?

This commit is contained in:
Joe 2021-03-23 21:40:21 -05:00
parent 660f028c03
commit 8dd39e1ee0
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
document.addEventListener('DOMContentLoaded', function () {
var link = document.getElementsByTagName('A');
for (var i = 0; i < link.length; i++) {
if (link[i].clientWidth > 460) {
if (link[i].offsetWidth > 460) {
link[i].classList.add('long')
};
}