Fix exported settings being not importable

This commit is contained in:
naskya 2023-06-01 07:55:59 +09:00
parent e492a581b3
commit 8c6f98cfc3

View file

@ -173,7 +173,7 @@ function validate(profile: unknown): void {
if (!isObject(profile)) throw new Error("not an object");
// Check if unnecessary properties exist
if (Object.keys(profile).some((key) => !profileProps.includes(key)))
if (Object.keys(profile).some((key) => !profileProps.includes(key) && key !== "host"))
throw new Error("Unnecessary properties exist");
if (!profile.name) throw new Error("Missing required prop: name");