summaryrefslogtreecommitdiffstats
path: root/sandstorm.js
diff options
context:
space:
mode:
authorDavid Renshaw <david@sandstorm.io>2016-11-22 22:20:39 -0500
committerDavid Renshaw <david@sandstorm.io>2016-11-22 22:20:39 -0500
commitcacaa0ee8c8811145df9a888ca5bce3c9178397d (patch)
treeaa37a5c5613b18de3e36e32fbea4711a2eb441ee /sandstorm.js
parent1ad41072010fb59fdbace80a0aa049634074dac1 (diff)
downloadwekan-cacaa0ee8c8811145df9a888ca5bce3c9178397d.tar.gz
wekan-cacaa0ee8c8811145df9a888ca5bce3c9178397d.tar.bz2
wekan-cacaa0ee8c8811145df9a888ca5bce3c9178397d.zip
hack to avoid 'board not found' problem in Sandstorm
Diffstat (limited to 'sandstorm.js')
-rw-r--r--sandstorm.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/sandstorm.js b/sandstorm.js
index dc5b10d6..3e04d79f 100644
--- a/sandstorm.js
+++ b/sandstorm.js
@@ -428,6 +428,13 @@ if (isSandstorm && Meteor.isClient) {
return url.replace(/^https?:\/\/127\.0\.0\.1:[0-9]{2,5}/, '');
};
Meteor.absoluteUrl.defaultOptions = _defaultOptions;
+
+ // XXX Hack to fix https://github.com/wefork/wekan/issues/27
+ // Sandstorm Wekan instances only ever have a single board, so there is no need
+ // to cache per-board subscriptions.
+ SubsManager.prototype.subscribe = function(...params) {
+ return Meteor.subscribe(...params);
+ };
}
// We use this blaze helper in the UI to hide some templates that does not make