Add clearer assertion of process being undefined

This commit is contained in:
Kevin Sawicki 2016-03-24 12:29:54 -07:00
parent d7b1792503
commit 9e66df23d0
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
window.opener.postMessage(typeof process, '*')
window.opener.postMessage({isProcessGlobalUndefined: typeof process === 'undefined'}, '*')
</script>
</body>
</html>