diff --git a/Resources/Public/Scripts/nwt.mailobfuscation.js b/Resources/Public/Scripts/nwt.mailobfuscation.js index 82e1921..2c6e513 100644 --- a/Resources/Public/Scripts/nwt.mailobfuscation.js +++ b/Resources/Public/Scripts/nwt.mailobfuscation.js @@ -50,4 +50,6 @@ function linkTo_UnCryptMailto(s, offset) { location.href = 'mailto:' + decryptString(s, offset); } -global.linkTo_UnCryptMailto = linkTo_UnCryptMailto; \ No newline at end of file +if (typeof global !== 'undefined') { + global.linkTo_UnCryptMailto = linkTo_UnCryptMailto; +} \ No newline at end of file