mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
Fix error
This commit is contained in:
parent
87c1851602
commit
470fae7c53
2 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
|
||||||
cacheRemoteFiles: instance.cacheRemoteFiles,
|
cacheRemoteFiles: instance.cacheRemoteFiles,
|
||||||
enableRecaptcha: instance.enableRecaptcha,
|
enableRecaptcha: instance.enableRecaptcha,
|
||||||
recaptchaSiteKey: instance.recaptchaSiteKey,
|
recaptchaSiteKey: instance.recaptchaSiteKey,
|
||||||
swPublickey: config.sw ? config.sw.public_key : null,
|
swPublickey: null,
|
||||||
bannerUrl: instance.bannerUrl,
|
bannerUrl: instance.bannerUrl,
|
||||||
errorImageUrl: instance.errorImageUrl,
|
errorImageUrl: instance.errorImageUrl,
|
||||||
maxNoteTextLength: instance.maxNoteTextLength,
|
maxNoteTextLength: instance.maxNoteTextLength,
|
||||||
|
|
|
@ -34,7 +34,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
||||||
if (exist != null) {
|
if (exist != null) {
|
||||||
return res({
|
return res({
|
||||||
state: 'already-subscribed',
|
state: 'already-subscribed',
|
||||||
key: config.sw.public_key
|
key: config.sw.publicKey
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,6 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
||||||
|
|
||||||
res({
|
res({
|
||||||
state: 'subscribed',
|
state: 'subscribed',
|
||||||
key: config.sw.public_key
|
key: config.sw.publicKey
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue