Fixes for language and scaling

This commit is contained in:
Colin McLeod
2015-09-01 02:20:05 -07:00
parent bf217e7fdd
commit 65f53a3fa4
19 changed files with 696 additions and 568 deletions

View File

@@ -45,7 +45,7 @@ angular.module('app').service('Persist', ['$window', 'lodash', function($window,
};
this.getLangCode = function() {
return this.lsEnabled ? localStorage.getItem(LS_KEY_LANG) : 'en';
return this.lsEnabled ? localStorage.getItem(LS_KEY_LANG) : null;
};
/**
@@ -287,7 +287,7 @@ angular.module('app').service('Persist', ['$window', 'lodash', function($window,
if (this.lsEnabled) {
var ratio = localStorage.getItem('sizeRatio');
if (!isNaN(ratio) && ratio > 0.6) {
return ratio
return ratio;
}
}
return 1;