diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-29 02:58:41 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-29 02:58:41 +0800 |
commit | 5415d1589e922dc689eaa9ec64ab830f3fd46af4 (patch) | |
tree | e058cf6eb875ad40a347e5992087d0cdd191c192 /packages/instant/src/util | |
parent | 35d8525f5563e877752fd1bd9e5a5c7ffa395b78 (diff) | |
download | dexon-0x-contracts-5415d1589e922dc689eaa9ec64ab830f3fd46af4.tar dexon-0x-contracts-5415d1589e922dc689eaa9ec64ab830f3fd46af4.tar.gz dexon-0x-contracts-5415d1589e922dc689eaa9ec64ab830f3fd46af4.tar.bz2 dexon-0x-contracts-5415d1589e922dc689eaa9ec64ab830f3fd46af4.tar.lz dexon-0x-contracts-5415d1589e922dc689eaa9ec64ab830f3fd46af4.tar.xz dexon-0x-contracts-5415d1589e922dc689eaa9ec64ab830f3fd46af4.tar.zst dexon-0x-contracts-5415d1589e922dc689eaa9ec64ab830f3fd46af4.zip |
feat: write version info to window
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r-- | packages/instant/src/util/version.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/instant/src/util/version.ts b/packages/instant/src/util/version.ts new file mode 100644 index 000000000..5264cd659 --- /dev/null +++ b/packages/instant/src/util/version.ts @@ -0,0 +1,8 @@ +const anyWindow = window as any; + +export const versionUtil = { + writeVersionInfoToWindow: () => { + anyWindow.__zeroExInstantGitSha = process.env.GIT_SHA; + anyWindow.__zeroExInstantNpmVersion = process.env.NPM_PACKAGE_VERSION; + }, +}; |