From ac7bb1e1ff860e8c7fe8256038e3516e83e5f4ef Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 17 Apr 2025 00:20:38 +0200 Subject: [PATCH] MINOR,FEAT: extended extension logic --- src/extensions/extension.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/extensions/extension.js b/src/extensions/extension.js index 744fc9e..6b33d30 100644 --- a/src/extensions/extension.js +++ b/src/extensions/extension.js @@ -46,6 +46,13 @@ class CompelExtension { */ helperFun; + /** + * functions that are supposed to be executed after install, + * to extend it that way. + * @type {Array} + */ + funAfterInstall + /** * defines how jpc-like-websites is to be extended and executes that extension */ @@ -68,5 +75,10 @@ class CompelExtension { } } + if (this.funAfterInstall) { + for (const fun of this.funAfterInstall) { + fun(); + } + } } }