diff options
Diffstat (limited to 'src/js/utils.js')
-rw-r--r-- | src/js/utils.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/js/utils.js b/src/js/utils.js index 172e29ca..18ce6dee 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -319,8 +319,11 @@ const utils = { return; } - Object.keys(attributes).forEach(key => { - element.setAttribute(key, attributes[key]); + Object.entries(attributes).forEach(([ + key, + value, + ]) => { + element.setAttribute(key, value); }); }, |