diff --git a/controllers/script.js b/controllers/script.js index 51f202ec8..e76bbbf6f 100644 --- a/controllers/script.js +++ b/controllers/script.js @@ -48,6 +48,7 @@ var removeReasons = require('../views/includes/scriptModals.json').removeReasons exports.new = function (aController) { return (function (aReq, aRes, aNext) { aReq.params.isNew = true; + aReq.params.isLib = false; // NOTE: Set default .user.js and overridden below aController(aReq, aRes, aNext); }); }; diff --git a/views/includes/scripts/scriptEditor.html b/views/includes/scripts/scriptEditor.html index 8b3b3dd8e..c29452ac5 100644 --- a/views/includes/scripts/scriptEditor.html +++ b/views/includes/scripts/scriptEditor.html @@ -13,7 +13,7 @@ var hasChanged = false; var placeholder = null; var username = '{{authedUser.name}}' || 'username'; - var isLib = !!'{{isLib}}'; + var isLib = {{isLib}}; var now = new Date(); var year = now.getFullYear();