This commit is contained in:
syuilo 2018-12-20 04:11:10 +09:00
parent ba6b8cbda8
commit 30eb573f5c

View file

@ -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 = { export type IMeta = {
name?: string; name?: string;