Skip to content

Commit

Permalink
Use const instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Sep 19, 2020
1 parent b9cb007 commit fc9ce45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/Resources/views/default/content/full.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</style>
<script type='application/javascript'>
function copyText(element) {
var aux = document.createElement('input');
const aux = document.createElement('input');
aux.setAttribute('value', element.innerHTML);
document.body.appendChild(aux);
aux.select();
Expand Down

0 comments on commit fc9ce45

Please sign in to comment.