From 3a04346542b4221d33d60f5db26a4618924c91d1 Mon Sep 17 00:00:00 2001 From: KayelGee Date: Wed, 8 Mar 2023 16:53:31 +0100 Subject: [PATCH] remove the eval because it wasn't needed in the first place as directory.constructor is the actual class I was looking for --- moar-folders.js | 2 +- module.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/moar-folders.js b/moar-folders.js index f4713c3..99c8297 100644 --- a/moar-folders.js +++ b/moar-folders.js @@ -22,7 +22,7 @@ var FOLDER_MAX_DEPTH_MOAR_FOLDERS = CONST.FOLDER_MAX_DEPTH; let dir = game[key].directory; let protoclass; try { - protoclass = eval(game[key].directory.constructor.name); + protoclass = game[key].directory.constructor; } catch (error) { console.debug(`Moar Folders: Directory Class not known ${game[key].directory.constructor.name}`) } diff --git a/module.json b/module.json index e16f54d..be3f71a 100644 --- a/module.json +++ b/module.json @@ -2,10 +2,10 @@ "id": "moar-folders", "title": "Moar Folders", "description": "Allows increasing of the maximum folder depth. Use at your own risk, as this is removing a limitation set by core Foundry and can cause UI and performance problems.", - "version": "1.1.2", + "version": "1.1.3", "compatibility" :{ "minimum": 10, - "verified": "10.286" + "verified": "10.291" }, "authors": [ { @@ -34,6 +34,6 @@ "socket": false, "url": "https://github.com/KayelGee/moar-folders", "manifest": "https://raw.githubusercontent.com/KayelGee/moar-folders/master/module.json", - "download": "https://github.com/KayelGee/moar-folders/releases/download/v1.1.2/v1.1.2.zip", - "readme": "https://github.com/KayelGee/moar-folders/blob/v1.1.2/README.md" + "download": "https://github.com/KayelGee/moar-folders/releases/download/v1.1.3/v1.1.3.zip", + "readme": "https://github.com/KayelGee/moar-folders/blob/v1.1.3/README.md" }