From d58c22b4d11c1aaca77ccf714fcd2130a7a94e07 Mon Sep 17 00:00:00 2001 From: SimonShiki Date: Sat, 9 Mar 2024 11:17:58 +0000 Subject: [PATCH] :bug: fix: missing ``typeof`` when deserializing Signed-off-by: SimonShiki --- src/injector/inject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/injector/inject.ts b/src/injector/inject.ts index cf03257..af32e61 100644 --- a/src/injector/inject.ts +++ b/src/injector/inject.ts @@ -302,7 +302,7 @@ export function inject (vm: EurekaCompatibleVM) { const originalDrserializeFunc = vm.deserializeProject; vm.deserializeProject = function (projectJSON: Record, ...args) { - if (typeof projectJSON.extensionURLs === 'object' || projectJSON.sideloadExtensionURLs === 'object') { + if (typeof projectJSON.extensionURLs === 'object' || typeof projectJSON.sideloadExtensionURLs === 'object') { const extensionURLs: Record = typeof projectJSON.sideloadExtensionURLs === 'object' ? (projectJSON.sideloadExtensionURLs as Record)