diff --git a/test.js b/test.js index b6c0192..1d93cdb 100644 --- a/test.js +++ b/test.js @@ -1,3 +1,3 @@ require('sodium-test')(require('.')) -if (typeof window !== 'undefined') window.close() +if ((typeof window !== 'undefined') && window.close) window.close()