summaryrefslogtreecommitdiffstats
path: root/server/lib
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2016-01-05 13:37:15 +0100
committerMaxime Quandalle <maxime@quandalle.com>2016-01-05 13:37:15 +0100
commit701262a4394ea3fad1d64275930804db4f4ba182 (patch)
tree8cf1a9fd052008aa2d7ffa60102dc699018a92a8 /server/lib
parent9ef8ebaf09e52d7133ebe08ab1354ef663ee948b (diff)
downloadwekan-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/lib')
-rw-r--r--server/lib/utils.js21
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;
- },
-};