Skip to content

Commit df972a6

Browse files
committed
Fix polyfill issue
1 parent 29c0874 commit df972a6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/angular.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
"deploy": {
107107
"builder": "angular-cli-ghpages:deploy",
108108
"options": {
109-
"name": "Ariton Team",
110-
"email": "[email protected]",
109+
"name": "sondreb",
110+
"email": "[email protected]",
111111
"baseHref": "/ariton/",
112112
"dir": "dist/app",
113113
"repo": "https://github.com/block-core/ariton.git"

app/src/polyfills.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ import * as crypto from 'crypto';
33
import * as stream from 'stream';
44

55
(window as any).process = process;
6-
(window as any).crypto = crypto;
6+
if (!(window as any).crypto) {
7+
(window as any).crypto = crypto;
8+
}
79
(window as any).stream = stream;

0 commit comments

Comments
 (0)