Просмотр исходного кода

Merge pull request #802 from sharelatex/as-sl-redirect

Add feature flag for redirecting SL to v2
Alasdair Smith 8 лет назад
Родитель
Сommit
38689dbb1d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      services/web/app/coffee/infrastructure/Features.coffee

+ 2 - 0
services/web/app/coffee/infrastructure/Features.coffee

@@ -25,5 +25,7 @@ module.exports = Features =
 			when 'rich-text'
 				isEnabled = true # Switch to false to disable
 				Settings.overleaf? and isEnabled
+			when 'redirect-sl'
+				return Settings.redirectToV2?
 			else
 				throw new Error("unknown feature: #{feature}")