From acd10a13bf4f69c049aa39c5c8277494e0f29aac Mon Sep 17 00:00:00 2001 From: Forien Date: Mon, 22 Jun 2020 10:39:14 +0200 Subject: [PATCH] added message to copied list --- README.md | 2 +- module.json | 6 +++--- modules/init.js | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a3b5426..1536468 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # FoundryVTT - Forien's Copy Environment -![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/forien/foundryvtt-forien-copy-environment?style=for-the-badge) ![GitHub Releases](https://img.shields.io/github/downloads/Forien/foundryvtt-forien-copy-environment/latest/total?style=for-the-badge) +![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/forien/foundryvtt-forien-copy-environment?style=for-the-badge) ![GitHub Releases](https://img.shields.io/github/downloads/Forien/foundryvtt-forien-copy-environment/total?style=for-the-badge) **[Compatibility]**: *FoundryVTT* 0.6.0+ **[Systems]**: *any* diff --git a/module.json b/module.json index 792fce2..10d5fca 100644 --- a/module.json +++ b/module.json @@ -9,13 +9,13 @@ "url": "https://www.patreon.com/forien" } ], - "version": "1.0.0", + "version": "1.0.1", "minimumCoreVersion": "0.6.0", "compatibleCoreVersion": "0.6.3", "url": "https://github.com/Forien/foundryvtt-forien-copy-environment", "manifest": "https://raw.githubusercontent.com/Forien/foundryvtt-forien-copy-environment/master/module.json", - "download": "https://github.com/Forien/foundryvtt-forien-copy-environment/releases/download/v1.0.0/v1.0.0.zip", - "readme": "https://github.com/Forien/foundryvtt-forien-copy-environment/blob/v1.0.0/README.md", + "download": "https://github.com/Forien/foundryvtt-forien-copy-environment/releases/download/v1.0.1/v1.0.1.zip", + "readme": "https://github.com/Forien/foundryvtt-forien-copy-environment/blob/v1.0.1/README.md", "bugs": "https://github.com/Forien/foundryvtt-forien-copy-environment/issues", "esmodules": [ "./modules/init.js" diff --git a/modules/init.js b/modules/init.js index 132cb6c..250048d 100644 --- a/modules/init.js +++ b/modules/init.js @@ -10,6 +10,8 @@ class FCE { text += `${m.id} ${m.data.version} (${m.data.author})\n`; }); + text += `\n${data.message}`; + const el = document.createElement('textarea'); el.value = text; el.setAttribute('readonly', ''); @@ -58,7 +60,9 @@ class FCE { let system = game.data.system; let core = game.data.version; - return {core, system, modules}; + let message = "List generated with Forien's Copy Environment: https://github.com/Forien/foundryvtt-forien-copy-environment" + + return {message, core, system, modules}; } static getModules() {