mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-18 12:51:51 +00:00
list of sponsors + fixes
- added list of sponsors, if you host an instance, it can be enabled with showSponsors. - fixed download button thickness on ios. - about button now opens about tab when no new changelog is available.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import * as fs from "fs";
|
||||
import { links, repo } from "../modules/config.js";
|
||||
import loadJson from "../modules/sub/loadJSON.js";
|
||||
import { loadJSON } from "../modules/sub/loadFromFs.js";
|
||||
|
||||
const locPath = './src/localization/languages';
|
||||
|
||||
@@ -10,7 +10,7 @@ let languages = [];
|
||||
export async function loadLoc() {
|
||||
const files = await fs.promises.readdir(locPath).catch((e) => { return [] });
|
||||
files.forEach(file => {
|
||||
loc[file.split('.')[0]] = loadJson(`${locPath}/${file}`);
|
||||
loc[file.split('.')[0]] = loadJSON(`${locPath}/${file}`);
|
||||
languages.push(file.split('.')[0])
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user