@syengup/friday-channel-next 0.0.22 → 0.0.23
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.
- package/install.js +12 -0
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -198,6 +198,18 @@ if (!config.plugins.entries["friday-next"]) {
|
|
|
198
198
|
console.log(" + Enabled friday-next in plugins.entries");
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
if (!config.plugins.allow.includes("canvas")) {
|
|
202
|
+
config.plugins.allow.push("canvas");
|
|
203
|
+
console.log(" + Added canvas to plugins.allow");
|
|
204
|
+
}
|
|
205
|
+
if (!config.plugins.entries["canvas"]) {
|
|
206
|
+
config.plugins.entries["canvas"] = { enabled: true };
|
|
207
|
+
console.log(" + Added canvas to plugins.entries (enabled)");
|
|
208
|
+
} else if (!config.plugins.entries["canvas"].enabled) {
|
|
209
|
+
config.plugins.entries["canvas"].enabled = true;
|
|
210
|
+
console.log(" + Enabled canvas in plugins.entries");
|
|
211
|
+
}
|
|
212
|
+
|
|
201
213
|
if (!config.channels) config.channels = {};
|
|
202
214
|
if (!config.channels["friday-next"]) {
|
|
203
215
|
config.channels["friday-next"] = { enabled: true, transport: "http+sse" };
|