mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 01:01:32 +00:00
Merge pull request #802 from sharelatex/as-sl-redirect
Add feature flag for redirecting SL to v2
This commit is contained in:
commit
38689dbb1d
1 changed files with 2 additions and 0 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue