Skip to content

Commit

Permalink
remove the eval because it wasn't needed in the first place as direct…
Browse files Browse the repository at this point in the history
…ory.constructor is the actual class I was looking for
  • Loading branch information
KayelGee committed Mar 8, 2023
1 parent ed2a938 commit 3a04346
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion moar-folders.js
Expand Up @@ -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}`)
}
Expand Down
8 changes: 4 additions & 4 deletions module.json
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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"
}

0 comments on commit 3a04346

Please sign in to comment.