From 9b36c9d799b0015309cf48d7fd8efd80abf2e8b7 Mon Sep 17 00:00:00 2001 From: Oj Date: Mon, 7 Jun 2021 18:48:53 +0100 Subject: [PATCH] [PCCompat > Plugin] Add manifest --- moduleWrappers/powercord/entities.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/moduleWrappers/powercord/entities.js b/moduleWrappers/powercord/entities.js index 65e36f8..e09d69a 100644 --- a/moduleWrappers/powercord/entities.js +++ b/moduleWrappers/powercord/entities.js @@ -22,6 +22,18 @@ export class Plugin { Settings.makeStore(this.entityID); } + // Supposed to return PC manifest, which we don't store so return a rough one based on GM metadata + get manifest() { + return { + name: this.name, + description: this.description, + version: this.version, + + author: this.authors.toString(), + license: 'Unknown' + } + } + get entityID() { return this.name; }