mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
21 lines
392 B
JavaScript
21 lines
392 B
JavaScript
"use strict";
|
|
|
|
plugin.consumes = [
|
|
"connect"
|
|
];
|
|
plugin.provides = [
|
|
"connect.favicon"
|
|
];
|
|
|
|
module.exports = plugin;
|
|
|
|
function plugin(options, imports, register) {
|
|
var connect = imports.connect;
|
|
|
|
var icon = options.path || __dirname + "/favicon.ico";
|
|
connect.useStart(connect.getModule().favicon(icon, options));
|
|
|
|
register(null, {
|
|
"connect.favicon": {}
|
|
});
|
|
} |