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

Add feature flag for redirecting SL to v2
This commit is contained in:
Alasdair Smith 2018-08-16 16:32:55 +01:00 committed by GitHub
commit 38689dbb1d

View file

@ -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}")