Created
May 6, 2019 04:06
-
-
Save KleversonNascimento/6a55110eb620e0e9e7ac5a17c92e6171 to your computer and use it in GitHub Desktop.
function isTWA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isTWA() { | |
if (window.document.referrer === 'com.package.name.example') { | |
return true; | |
} | |
return false; | |
} | |
export default isTWA; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment