|
@@ -3,22 +3,27 @@ console.log(Cookies);
|
|
|
let title = ''
|
|
|
let config = Cookies.get('GCLS_Config')
|
|
|
if (config) {
|
|
|
- let configObj = JSON.parse(config);
|
|
|
- title = configObj.title
|
|
|
+ let configObj = JSON.parse(config);
|
|
|
+ title = configObj.title
|
|
|
+ var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
|
|
|
+ link.type = 'image/x-icon';
|
|
|
+ link.rel = 'shortcut icon';
|
|
|
+ link.href = configObj.title_icon_url;
|
|
|
+ document.getElementsByTagName('head')[0].appendChild(link);
|
|
|
}
|
|
|
console.log(title);
|
|
|
module.exports = {
|
|
|
- title: title,
|
|
|
+ title: title,
|
|
|
|
|
|
- /**
|
|
|
- * @type {boolean} true | false
|
|
|
- * @description Whether fix the header
|
|
|
- */
|
|
|
- fixedHeader: false,
|
|
|
+ /**
|
|
|
+ * @type {boolean} true | false
|
|
|
+ * @description Whether fix the header
|
|
|
+ */
|
|
|
+ fixedHeader: false,
|
|
|
|
|
|
- /**
|
|
|
- * @type {boolean} true | false
|
|
|
- * @description Whether show the logo in sidebar
|
|
|
- */
|
|
|
- sidebarLogo: false
|
|
|
+ /**
|
|
|
+ * @type {boolean} true | false
|
|
|
+ * @description Whether show the logo in sidebar
|
|
|
+ */
|
|
|
+ sidebarLogo: false
|
|
|
}
|