Fix #3683
This commit is contained in:
parent
e3389e7899
commit
1c93fcb1c4
@ -138,6 +138,19 @@ if ((config as any).user_recommendation) {
|
||||
}
|
||||
});
|
||||
}
|
||||
if ((config as any).sw) {
|
||||
Meta.findOne({}).then(m => {
|
||||
if (m != null && m.enableServiceWorker == null) {
|
||||
Meta.update({}, {
|
||||
$set: {
|
||||
enableServiceWorker: true,
|
||||
swPublicKey: (config as any).sw.public_key,
|
||||
swPrivateKey: (config as any).sw.private_key
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export type IMeta = {
|
||||
name?: string;
|
||||
|
Loading…
Reference in New Issue
Block a user