notherbase-fs 3.2.19 → 3.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/notherbase-fs.js +3 -2
  2. package/package.json +1 -1
package/notherbase-fs.js CHANGED
@@ -20,6 +20,7 @@ class NotherBaseFS {
20
20
  constructor(contentPath, globals = null, settings = {}) {
21
21
  this.settings = {
22
22
  siteTitle: "NotherBase",
23
+ favicon: null,
23
24
  ...settings
24
25
  }
25
26
  this.app = express();
@@ -48,8 +49,8 @@ class NotherBaseFS {
48
49
  this.app.use(express.static(`${__dirname}/public`));
49
50
 
50
51
  // sets the favicon image
51
- this.app.use(favicon(contentPath + '/public/img/logo.ico'));
52
- this.app.use(favicon(__dirname + '/public/img/logo.png'));
52
+ if (this.settings.favicon) this.app.use(favicon(this.settings.favicon));
53
+ else this.app.use(favicon(__dirname + '/public/img/logo.png'));
53
54
 
54
55
  //enable cookies
55
56
  this.app.use(session({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.2.19",
3
+ "version": "3.2.20",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {