mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Fixes for language and scaling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user