Skip to content

Commit 1ee88c1

Browse files
use global file
1 parent 213d83d commit 1ee88c1

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

demo/vue-app-new/index.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<script type="module">
5-
import { Buffer } from "buffer";
6-
import process from "process";
7-
// window.global ||= window;
8-
window.Buffer = Buffer;
9-
window.process = process;
10-
</script>
114
<meta charset="UTF-8" />
125
<link rel="icon" href="/favicon.ico" />
136
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
147
<title>Web3Auth demo</title>
158
</head>
169
<body>
1710
<noscript>
18-
<strong>
19-
We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.
20-
</strong>
11+
<strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
2112
</noscript>
2213
<div id="app"></div>
2314
<script type="module" src="/src/main.ts"></script>

demo/vue-app-new/src/global.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { Buffer } from "buffer";
2+
import process from "process";
3+
// window.global ||= window;
4+
5+
window.Buffer = Buffer;
6+
window.process = process;

demo/vue-app-new/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "./global";
12
import "./style.css";
23

34
import { createApp } from "vue";

0 commit comments

Comments
 (0)