Skip to content

Commit

Permalink
Fix support for passing predefined app to openApp() (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondji committed Feb 26, 2024
1 parent 2d5e959 commit d9e7422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -281,8 +281,8 @@ const open = (target, options) => {
};

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

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

0 comments on commit d9e7422

Please sign in to comment.