summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2017-10-12 21:04:17 +0000
committerClement Ho <clemmakesapps@gmail.com>2017-10-12 21:04:17 +0000
commitc3195e83a8ba7ac54516fa9f08340e4dd442f63b (patch)
tree15e29ac31e1cfa53da7f48a23828b1088b5beda1 /app/assets/javascripts/lib
parent3555252d808d7d939e1dd508962abe8d94cbd667 (diff)
downloadgitlab-ce-c3195e83a8ba7ac54516fa9f08340e4dd442f63b.tar.gz
Add create merge checkbox.
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r--app/assets/javascripts/lib/utils/url_utility.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/lib/utils/url_utility.js b/app/assets/javascripts/lib/utils/url_utility.js
index 78c7a094127..1aa63216baf 100644
--- a/app/assets/javascripts/lib/utils/url_utility.js
+++ b/app/assets/javascripts/lib/utils/url_utility.js
@@ -85,7 +85,7 @@ w.gl.utils.getLocationHash = function(url) {
return hashIndex === -1 ? null : url.substring(hashIndex + 1);
};
-w.gl.utils.refreshCurrentPage = () => gl.utils.visitUrl(document.location.href);
+w.gl.utils.refreshCurrentPage = () => gl.utils.visitUrl(window.location.href);
// eslint-disable-next-line import/prefer-default-export
export function visitUrl(url, external = false) {
@@ -96,7 +96,7 @@ export function visitUrl(url, external = false) {
otherWindow.opener = null;
otherWindow.location = url;
} else {
- document.location.href = url;
+ window.location.href = url;
}
}