Skip to content

Commit

Permalink
Merge pull request #18 from networkteam/ad-global-variable
Browse files Browse the repository at this point in the history
Make use of global variable more resilient
  • Loading branch information
suffle authored Aug 20, 2019
2 parents bd4eb91 + 239980b commit 7e6d0be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Resources/Public/Scripts/nwt.mailobfuscation.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ function linkTo_UnCryptMailto(s, offset) {
location.href = 'mailto:' + decryptString(s, offset);
}

global.linkTo_UnCryptMailto = linkTo_UnCryptMailto;
if (typeof global !== 'undefined') {
global.linkTo_UnCryptMailto = linkTo_UnCryptMailto;
}

0 comments on commit 7e6d0be

Please sign in to comment.