Normalize string options to object

This commit is contained in:
jelveh
2026-05-06 11:59:28 -07:00
parent 906c00af97
commit b7f199ddbc
+3
View File
@@ -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