fix(mobile): let mobile reg handle default tasks and tags

This commit is contained in:
Sabe Jones 2017-09-26 21:40:06 +00:00
parent c8d5eb9689
commit a515168766
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ RUN npm install -g gulp grunt-cli bower mocha
# Clone Habitica repo and install dependencies
RUN mkdir -p /usr/src/habitrpg
WORKDIR /usr/src/habitrpg
RUN git clone --branch v3.115.0 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
RUN git clone --branch v3.116.1 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
RUN npm install
RUN bower install --allow-root
RUN gulp build:prod --force

View file

@ -33,7 +33,7 @@ function findTag (user, tagName) {
function _populateDefaultTasks (user, taskTypes) {
let defaultsData;
if (user.registeredThrough === 'habitica-android' || user.registeredThrough === 'habitica-ios') {
defaultsData = shared.content.userDefaultsMobile;
return;
} else {
defaultsData = shared.content.userDefaults;
}