mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Try to fix Color picker of lists is empty. Part 2.
Thanks to bronger and xet7 ! Related #3418
This commit is contained in:
parent
26921a9c36
commit
6007fe263e
1 changed files with 4 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
|||
Oidc = {};
|
||||
httpCa = false;
|
||||
|
||||
if (process.env.OAUTH2_CA_CERT.length > 0) {
|
||||
if (process.env.OAUTH2_CA_CERT !== undefined) {
|
||||
try {
|
||||
const fs = Npm.require('fs');
|
||||
httpCa = fs.readFileSync(process.env.OAUTH2_CA_CERT);
|
||||
if (fs.existsSync(process.env.OAUTH2_CA_CERT) {
|
||||
httpCa = fs.readFileSync(process.env.OAUTH2_CA_CERT);
|
||||
}
|
||||
} catch(e) {
|
||||
console.log('WARNING: failed loading: ' + process.env.OAUTH2_CA_CERT);
|
||||
console.log(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue