Merge branch 'hotfix/21.56.9' into master
[gitter.git] / public / js / routes / upgrade-access-routes.js
bloba47feba685c0becb57659584882b38945936ca91
1 'use strict';
3 var scopeUpgrader = require('../components/scope-upgrader');
5 function createRouter() {
6 return {
7 'upgraderepoaccess(/:name)': function(returnLocation) {
8 scopeUpgrader('repo').then(function() {
9 window.location.href = '#' + (returnLocation || '');
10 });
15 module.exports = createRouter;