mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
Fix #3683
This commit is contained in:
parent
ba6b8cbda8
commit
30eb573f5c
1 changed files with 13 additions and 0 deletions
|
@ -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 a new issue