fix(mobile): let mobile reg handle default tasks and tags
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user