Skip to content

Commit

Permalink
🐛 fix: missing typeof when deserializing
Browse files Browse the repository at this point in the history
Signed-off-by: SimonShiki <[email protected]>
  • Loading branch information
SimonShiki committed Mar 9, 2024
1 parent dac18ec commit d58c22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/injector/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export function inject (vm: EurekaCompatibleVM) {

const originalDrserializeFunc = vm.deserializeProject;
vm.deserializeProject = function (projectJSON: Record<string, unknown>, ...args) {
if (typeof projectJSON.extensionURLs === 'object' || projectJSON.sideloadExtensionURLs === 'object') {
if (typeof projectJSON.extensionURLs === 'object' || typeof projectJSON.sideloadExtensionURLs === 'object') {
const extensionURLs: Record<string, unknown> =
typeof projectJSON.sideloadExtensionURLs === 'object'
? (projectJSON.sideloadExtensionURLs as Record<string, unknown>)
Expand Down

0 comments on commit d58c22b

Please sign in to comment.