From 459c000d8e4259e6436276dfef1eb2add41c220b Mon Sep 17 00:00:00 2001 From: Jack Holloway Date: Thu, 21 Jul 2022 20:06:26 +0100 Subject: [PATCH] v3.9.1 --- .github/workflows/build.yml | 6 +++--- CHANGELOG.md | 4 ++++ package.json | 2 +- src/tokenizer/index.js | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 091213e..0245cd8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,11 +69,11 @@ jobs: args: "Squint (Intern) has released Tokenizer ${{ steps.get-version.outputs.version }}." # - name: FoundryVTT AutoPublish - # uses: Varriount/fvtt-autopublish@v1.0.6 + # uses: Varriount/fvtt-autopublish@latest # with: # username: ${{ secrets.FOUNDRY_ADMIN_USER }} # password: ${{ secrets.FOUNDRY_ADMIN_PW }} - # module-id: 71 - # manifest-url: https://github.com/${{ github.repository }}/releases/download/${{ steps.get-version.outputs.version }} /module.json + # module-id: ${{ FOUNDRY_MODULE_ID }} + # manifest-url: https://github.com/${{ github.repository }}/releases/download/${{ steps.get-version.outputs.version }}/module.json # manifest-file: ./module.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 7581827..041feeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# [3.9.1] + +* Fix for Token Variants API @dirusulixes#6754 + # [3.9.0] * v10 support diff --git a/package.json b/package.json index 63dec03..ce82c75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tokenizer", - "version": "3.9.0", + "version": "3.9.1", "license": "MIT", "scripts": { "lint": "npx eslint src/", diff --git a/src/tokenizer/index.js b/src/tokenizer/index.js index aa96fd2..42a46fd 100644 --- a/src/tokenizer/index.js +++ b/src/tokenizer/index.js @@ -397,7 +397,7 @@ export default class Tokenizer extends FormApplication { case "tokenVariants": { game.modules.get('token-variants').api.showArtSelect(this.tokenOptions.name, { callback: (imgSrc) => Utils.download(imgSrc).then((img) => view.addImageLayer(img)), - searchType: eventTarget.dataset.target === "avatar" ? "portrait" : "token" + searchType: eventTarget.dataset.target === "avatar" ? "Portrait" : "Token" }); break; }