What am I doing wrong?
You get a reference error ReferenceError: DOMWindow is not definedbecause there is no item DOMWindowto check on the global object .
You will get the same error if you type window instanceof rubbish
window.constructor.name , ( "DOMWindow" ), althogh , .