mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
Fixed linting errors
This commit is contained in:
@@ -103,9 +103,9 @@
|
|||||||
-o-transform: translateX(-50%);
|
-o-transform: translateX(-50%);
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
.killAllMessageWrapperHidden {
|
.killAllMessageWrapperHidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.killAllMessageWrapperShow {
|
.killAllMessageWrapperShow {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,13 +14,18 @@ import 'numeral/locales/no';
|
|||||||
import 'numeral/locales/pl';
|
import 'numeral/locales/pl';
|
||||||
import 'numeral/locales/ru';
|
import 'numeral/locales/ru';
|
||||||
|
|
||||||
|
/* eslint-disable class-methods-use-this */
|
||||||
|
|
||||||
class NumeralFormatter {
|
class NumeralFormatter {
|
||||||
|
constructor() {
|
||||||
|
this.defaultLocale = 'en';
|
||||||
|
}
|
||||||
|
|
||||||
updateLocale(l) {
|
updateLocale(l) {
|
||||||
if (numeral.locale(l) == null) {
|
if (numeral.locale(l) == null) {
|
||||||
console.warn(`Invalid locale for numeral: ${l}`);
|
console.warn(`Invalid locale for numeral: ${l}`);
|
||||||
|
|
||||||
let defaultValue = 'en';
|
numeral.locale(this.defaultLocale);
|
||||||
numeral.locale(defaultValue);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user