summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-19 06:09:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-19 06:09:31 +0900
commit47bd485a396321880b2d4588a0f80f0bc6f4acca (patch)
treee7a832b4d8ad635f2f91558d626ea7d047775ad8 /src
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-47bd485a396321880b2d4588a0f80f0bc6f4acca.tar.gz
sharkey-47bd485a396321880b2d4588a0f80f0bc6f4acca.tar.bz2
sharkey-47bd485a396321880b2d4588a0f80f0bc6f4acca.zip
Clean up
Diffstat (limited to 'src')
-rw-r--r--src/config/types.ts10
-rw-r--r--src/push-sw.ts4
2 files changed, 4 insertions, 10 deletions
diff --git a/src/config/types.ts b/src/config/types.ts
index 3d78685e6a..6ca3e3b7f2 100644
--- a/src/config/types.ts
+++ b/src/config/types.ts
@@ -43,17 +43,11 @@ export type Source = {
* Service Worker
*/
sw?: {
- public_key: string;
- private_key: string;
+ publicKey: string;
+ privateKey: string;
};
clusterLimit?: number;
-
- user_recommendation?: {
- external: boolean;
- engine: string;
- timeout: number;
- };
};
/**
diff --git a/src/push-sw.ts b/src/push-sw.ts
index 2c09d0547e..bfd3b94a57 100644
--- a/src/push-sw.ts
+++ b/src/push-sw.ts
@@ -7,8 +7,8 @@ if (config.sw) {
// アプリケーションの連絡先と、サーバーサイドの鍵ペアの情報を登録
push.setVapidDetails(
config.url,
- config.sw.public_key,
- config.sw.private_key);
+ config.sw.publicKey,
+ config.sw.privateKey);
}
export default async function(userId: mongo.ObjectID | string, type: string, body?: any) {