diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2016-01-05 13:37:15 +0100 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2016-01-05 13:37:15 +0100 |
commit | 701262a4394ea3fad1d64275930804db4f4ba182 (patch) | |
tree | 8cf1a9fd052008aa2d7ffa60102dc699018a92a8 /server | |
parent | 9ef8ebaf09e52d7133ebe08ab1354ef663ee948b (diff) | |
download | wekan-701262a4394ea3fad1d64275930804db4f4ba182.tar.gz wekan-701262a4394ea3fad1d64275930804db4f4ba182.tar.bz2 wekan-701262a4394ea3fad1d64275930804db4f4ba182.zip |
Favor FlowRouter.url over Meteor.absoluteUrl
It hides the leading slash treatment as an hidden implementation
detail.
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/utils.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/server/lib/utils.js b/server/lib/utils.js index a6a84f90..b59671fb 100644 --- a/server/lib/utils.js +++ b/server/lib/utils.js @@ -5,24 +5,3 @@ allowIsBoardAdmin = function(userId, board) { allowIsBoardMember = function(userId, board) { return board && board.hasMember(userId); }; - -// todo XXX not really server-specific, -// so move it to a common (client+server) lib? -Utils = { - /** - * If text starts with a / will remove it. - * @param text - */ - stripLeadingSlash(text) { - // we need an actual text string - if (!text) { - return text; - } - // if starting with slash - if (text[0] === '/') { - return text.slice(1); - } - // otherwise leave untouched - return text; - }, -}; |