summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-15 20:08:21 +0000
committerPhil Hughes <me@iamphill.com>2017-12-15 20:08:21 +0000
commitdf4fe43d73c10db447fb08317bf4bf20878a2bfc (patch)
treef6886ea0b6a10e6df7b98366dd1b5f45a77857e7
parentb540b987648ae6e24bbbc01a7773b2e3209a47b0 (diff)
downloadgitlab-ce-df4fe43d73c10db447fb08317bf4bf20878a2bfc.tar.gz
Fixed diff_worker not compiling correctly
Closes #41182
-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({