mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-27 20:01:35 +00:00
Normalize string options to object
This commit is contained in:
@@ -1367,6 +1367,9 @@ const ipc_listener = async (event, handled) => {
|
||||
}
|
||||
|
||||
// set options
|
||||
if ( typeof event.data.options === 'string' ) {
|
||||
event.data.options = { defaultColor: event.data.options };
|
||||
}
|
||||
event.data.options = event.data.options ?? {};
|
||||
|
||||
// Clear window_options for security reasons
|
||||
|
||||
Reference in New Issue
Block a user