Add templates to the hasFeature function

This commit is contained in:
Shane Kilkelly 2018-05-01 14:01:52 +01:00
parent 40da785363
commit af70ef0dc4

View file

@ -18,5 +18,7 @@ module.exports = Features =
return Settings.showPublishModal return Settings.showPublishModal
when 'custom-togglers' when 'custom-togglers'
return Settings.overleaf? return Settings.overleaf?
when 'templates'
return !Settings.overleaf?
else else
throw new Error("unknown feature: #{feature}") throw new Error("unknown feature: #{feature}")