MrPrimate / tokenizer

Tiny yet capable in-game token editor for Foundry VTT
MIT License
29 stars 26 forks source link

Fix for null string in upload directory #5

Closed wleung85 closed 3 years ago

wleung85 commented 3 years ago

If users set the upload directory and then remove it to revert back to default behaviour, a null object is passed into the parse method. This commit simply checks for the null and uses an empty string if it is detected, thus reverting the behaviour back to default (save to Data directory).

This will address https://github.com/MrPrimate/vtta-tokenizer/issues/2 and https://github.com/MrPrimate/vtta-tokenizer/issues/4

MrPrimate commented 3 years ago

@wleung85 sorry, completely missed this PR, many thanks!