summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/repo/lib/diff/diff_worker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/repo/lib/diff/diff_worker.js b/app/assets/javascripts/repo/lib/diff/diff_worker.js
index e74c4046330..105431442af 100644
--- a/app/assets/javascripts/repo/lib/diff/diff_worker.js
+++ b/app/assets/javascripts/repo/lib/diff/diff_worker.js
@@ -1,6 +1,7 @@
import { computeDiff } from './diff';
-self.addEventListener('message', (e) => {
+// eslint-disable-next-line prefer-arrow-callback
+self.addEventListener('message', function diffWorker(e) {
const data = e.data;
self.postMessage({