This repository was archived by the owner on Feb 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
<meta http-equiv =" X-UA-Compatible" content =" IE=edge" />
6
6
<meta name =" viewport" content =" width=device-width,initial-scale=1.0" />
7
7
<title >Web3 Pass</title >
8
+ <link rel =' icon' type =' image/x-icon' id =' favicon' href =' /favicon.ico' />
8
9
</head >
9
10
<body >
10
11
<div id =" app" ></div >
Original file line number Diff line number Diff line change @@ -315,6 +315,14 @@ export default class Home extends Vue {
315
315
this .rss3Profile .bio = profile ?.bio || ' ' ;
316
316
this .rss3Profile .address = this .ethAddress ;
317
317
318
+ if (profile ?.avatar ?.[0 ]) {
319
+ const favicon = <HTMLLinkElement >document .getElementById (' favicon' );
320
+ favicon .href = profile .avatar [0 ];
321
+ }
322
+ if (profile ?.name ) {
323
+ document .title = profile .name ;
324
+ }
325
+
318
326
if (data ) {
319
327
this .accounts .push ({
320
328
platform: ' Ethereum' ,
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ module.exports = (env, argv) => ({
91
91
chunks : [ 'index' ] ,
92
92
filename : 'index.html' ,
93
93
title : 'RSS3 Page' ,
94
- favicon : 'public/favicon.ico' ,
94
+ // favicon: 'public/favicon.ico',
95
95
hash : true ,
96
96
template : 'src/assets/index.ejs' ,
97
97
} ) ,
You can’t perform that action at this time.
0 commit comments