Skip to content

Commit d9e7422

Browse files
authored
Fix support for passing predefined app to openApp() (#335)
1 parent 2d5e959 commit d9e7422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ const open = (target, options) => {
281281
};
282282

283283
export const openApp = (name, options) => {
284-
if (typeof name !== 'string') {
285-
throw new TypeError('Expected a `name`');
284+
if (typeof name !== 'string' && !Array.isArray(name)) {
285+
throw new TypeError('Expected a valid `name`');
286286
}
287287

288288
const {arguments: appArguments = []} = options ?? {};

0 commit comments

Comments
 (0)