diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 121ad8105..cfcf5722d 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -8,8 +8,10 @@ define([ '/common/sframe-common-history.js', '/common/metadata-manager.js', + '/customize/application_config.js', '/common/cryptpad-common.js' -], function (nThen, Messages, CpNfInner, SFrameChannel, Title, UI, History, MetadataMgr, Cryptpad) { +], function (nThen, Messages, CpNfInner, SFrameChannel, Title, UI, History, MetadataMgr, + AppConfig, Cryptpad) { // Chainpad Netflux Inner var funcs = {}; @@ -138,7 +140,7 @@ define([ } break; case 'template': - //if (!AppConfig.enableTemplates) { return; } + if (!AppConfig.enableTemplates) { return; } button = $('