This commit is contained in:
Norbert de Langen 2022-10-19 15:01:37 +02:00
parent e4e11569b3
commit 32aac521a4
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762

View File

@ -94,7 +94,7 @@ export interface SubAPI {
const removedOptions = ['enableShortcuts', 'theme', 'showRoots'];
function removeRemovedOptions<T extends Record<string, any> = Record<string, any>>(options?: T): T {
if (!options) {
if (!options || typeof options === 'string') {
return options;
}
const result: T = { ...options } as T;