summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/blob
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-06-15 15:58:27 +0000
committerPhil Hughes <me@iamphill.com>2018-06-15 15:58:27 +0000
commitbce890820f6ed0e75537b546d5ef1a0090c53b52 (patch)
treea47c9f036bd4c52f74ffeded70c418f23ba57ae8 /app/assets/javascripts/blob
parent72770e609d755a1abe304025424b8a90b7337842 (diff)
downloadgitlab-ce-bce890820f6ed0e75537b546d5ef1a0090c53b52.tar.gz
Enable no-restricted-globals in JS files
Diffstat (limited to 'app/assets/javascripts/blob')
-rw-r--r--app/assets/javascripts/blob/viewer/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/blob/viewer/index.js b/app/assets/javascripts/blob/viewer/index.js
index f61c0be9230..5485248cfaf 100644
--- a/app/assets/javascripts/blob/viewer/index.js
+++ b/app/assets/javascripts/blob/viewer/index.js
@@ -70,7 +70,7 @@ export default class BlobViewer {
const initialViewer = this.$fileHolder[0].querySelector('.blob-viewer:not(.hidden)');
let initialViewerName = initialViewer.getAttribute('data-type');
- if (this.switcher && location.hash.indexOf('#L') === 0) {
+ if (this.switcher && window.location.hash.indexOf('#L') === 0) {
initialViewerName = 'simple';
}