diff options
author | Lauri Ojansivu <x@xet7.org> | 2016-11-29 03:46:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 03:46:33 +0200 |
commit | fd6c54b2a7573adeaf1733dd076fb6645f4064cf (patch) | |
tree | a77ef8fd5e0b308e2a939b24cb4fad1167abd16f | |
parent | b540eef8558c9c5969ed085be4ce8e4d03ac093f (diff) | |
parent | cacaa0ee8c8811145df9a888ca5bce3c9178397d (diff) | |
download | wekan-fd6c54b2a7573adeaf1733dd076fb6645f4064cf.tar.gz wekan-fd6c54b2a7573adeaf1733dd076fb6645f4064cf.tar.bz2 wekan-fd6c54b2a7573adeaf1733dd076fb6645f4064cf.zip |
Merge pull request #28 from dwrensha/subs-manager-monkey-patch
hack to avoid 'board not found' problem in Sandstorm
-rw-r--r-- | sandstorm.js | 7 |
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 |