123456789101112131415161718192021222324252627282930 |
- const Cookies = require("js-cookie");
- console.log(Cookies);
- let title = ''
- let config = Cookies.get('GCLS_Config')
- if (config) {
- 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,
- /**
- * @type {boolean} true | false
- * @description Whether fix the header
- */
- fixedHeader: false,
- /**
- * @type {boolean} true | false
- * @description Whether show the logo in sidebar
- */
- sidebarLogo: false
- }
|