Detect window.close is defined (#49)

This commit is contained in:
RangerMauve 2020-10-09 07:35:11 -04:00 committed by GitHub
parent 66494ec3b5
commit 7febc97986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,3 @@
require('sodium-test')(require('.')) require('sodium-test')(require('.'))
if (typeof window !== 'undefined') window.close() if ((typeof window !== 'undefined') && window.close) window.close()