Skip to content

Commit

Permalink
feat: web compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Sep 22, 2024
1 parent df552a4 commit 75146d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tempoId.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import * as crypto from 'crypto';
import * as nodeCrypto from 'crypto';

const crypto = nodeCrypto || window.crypto;

// Predefined alphabets
const Alphabet = {
Expand Down

0 comments on commit 75146d9

Please sign in to comment.