add type annotation

This commit is contained in:
vorotamoroz
2022-07-14 18:32:59 +09:00
parent b5e8ee691a
commit 6563481501

View File

@@ -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");