mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-01 11:36:14 +00:00
Normalize string options to object
This commit is contained in:
1 parent
906c00af97
commit
b7f199ddbc
1 file changed
+3
@@ -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