From 656348150138237a874dc4da1fb6522aa07cfbd6 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Thu, 14 Jul 2022 18:32:59 +0900 Subject: [PATCH] add type annotation --- src/ObsidianLiveSyncSettingTab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ObsidianLiveSyncSettingTab.ts b/src/ObsidianLiveSyncSettingTab.ts index c29d2bf..136e5b3 100644 --- a/src/ObsidianLiveSyncSettingTab.ts +++ b/src/ObsidianLiveSyncSettingTab.ts @@ -473,7 +473,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab { .reduce((obj, [key, val]) => { obj[key] = val; return obj; - }, {}); + }, {} as { [key: string]: string }); addResult(`Origin check:${org}`); if (responseHeaders["access-control-allow-credentials"] != "true") { addResult("❗ CORS is not allowing credential");