diff --git a/src/interface/client.js b/src/interface/client.js index 74738c06..b9f5a26f 100644 --- a/src/interface/client.js +++ b/src/interface/client.js @@ -48,7 +48,7 @@ export function request(options) { options.window = options.window.contentWindow; } - if (typeof options.window !== 'object' || options.window === null) { + if (options.window === null) { throw new Error('Expected options.window to be a window object, iframe, or iframe element id.'); }