mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Add templates to the hasFeature function
This commit is contained in:
@@ -18,5 +18,7 @@ module.exports = Features =
|
||||
return Settings.showPublishModal
|
||||
when 'custom-togglers'
|
||||
return Settings.overleaf?
|
||||
when 'templates'
|
||||
return !Settings.overleaf?
|
||||
else
|
||||
throw new Error("unknown feature: #{feature}")
|
||||
|
||||
Reference in New Issue
Block a user