diff --git a/index.html b/index.html
index cb8d7e6..0cc6049 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,6 @@
Vanity ETH
-
diff --git a/src/App.vue b/src/App.vue
index 61d88ac..bbc2701 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -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();
}
diff --git a/src/assets/images/favicon.ico b/src/assets/images/favicon.ico
new file mode 100644
index 0000000..d5780f1
Binary files /dev/null and b/src/assets/images/favicon.ico differ
diff --git a/src/assets/images/favicon.png b/src/assets/images/favicon.png
deleted file mode 100644
index f4e2684..0000000
Binary files a/src/assets/images/favicon.png and /dev/null differ
diff --git a/webpack.config.js b/webpack.config.js
index 9482c4c..14cc968 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -35,7 +35,7 @@ module.exports = {
exclude: /node_modules/
},
{
- test: /\.(png|woff2)/,
+ test: /\.(png|woff2|ico)/,
exclude: /node_modules/,
loader: 'url-loader'
}