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:
16
src/modules/sub/loadFromFs.js
Normal file
16
src/modules/sub/loadFromFs.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import * as fs from "fs";
|
||||
|
||||
export function loadJSON(path) {
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(path, 'utf-8'))
|
||||
} catch(e) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
export function loadFile(path) {
|
||||
try {
|
||||
return fs.readFileSync(path, 'utf-8')
|
||||
} catch(e) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import * as fs from "fs";
|
||||
|
||||
export default function(path) {
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(path, 'utf-8'))
|
||||
} catch(e) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user