Fix favicon issues

This commit is contained in:
Boris Kubiak 2018-02-13 08:24:59 +01:00
parent d679618d82
commit 9e2ba5f4a6
5 changed files with 11 additions and 2 deletions

View file

@ -7,7 +7,6 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="google-site-verification" content="AP7ip-eAPj3abUpEkg2_RJsN3o-kUWd83TwIrxfyDCQ" />
<title>Vanity ETH</title>
<link rel="icon" type="image/png" href="src/assets/images/favicon.png" />
<link rel="stylesheet" href="dist/style.css">
</head>
<body>

View file

@ -199,9 +199,19 @@
this.threads = this.cores;
}
},
addFavicon: function () {
const i = document.createElement('link');
const icon = require('./assets/images/favicon.ico');
i.type = 'image/x-icon';
i.rel = 'shortcut icon';
i.href = icon;
document.head.appendChild(i);
},
},
created: function () {
this.addFavicon();
this.countCores();
this.initWorkers();
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View file

@ -35,7 +35,7 @@ module.exports = {
exclude: /node_modules/
},
{
test: /\.(png|woff2)/,
test: /\.(png|woff2|ico)/,
exclude: /node_modules/,
loader: 'url-loader'
}