diff --git a/files/templates/comments.html b/files/templates/comments.html
index 293ce8268..62bd34ae7 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -459,12 +459,12 @@
};
var clipboard = new ClipboardJS('.copy-link');
- clipboard.on('success', function(e) {
+ clipboard.addEventListener('success', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
myToast.show();
console.log(e);
});
- clipboard.on('error', function(e) {
+ clipboard.addEventListener('error', function(e) {
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
myToast.show();
console.log(e);
diff --git a/files/templates/log.html b/files/templates/log.html
index fae7c6555..d5a658407 100644
--- a/files/templates/log.html
+++ b/files/templates/log.html
@@ -18,12 +18,12 @@