bmarian/chat-images

Links not converted in Foundry v9

Closed this issue · 1 comments

When I paste an image link into the chat after upgrade to Foundry v9, the link does not convert to an image, and I get this message in the console:

foundry.js:316 TypeError: Cannot read properties of undefined (reading 'match')
[Detected 1 package: chat-images]
    at isURL (url-checking.js:16)
    at isImageURL (url-checking.js:27)
    at convertMessageToImage (manager.js:34)
    at chat-images.js:21
    at Function._call (foundry.js:294)
    at Function.call (foundry.js:279)
    at ClientDatabaseBackend._preCreateDocumentArray (foundry.js:9920)
    at async ClientDatabaseBackend._createDocuments (foundry.js:9837)
    at async Function.createDocuments (document.mjs:338)
    at async Function.create (document.mjs:439)
onError @ foundry.js:316
🎁call_wrapped @ libWrapper-wrapper.js:502
🎁Hooks.onError#lib-wrapper @ listeners.js:137
🎁Hooks.onError#0 @ libWrapper-wrapper.js:182
_call @ foundry.js:298
call @ foundry.js:279
_preCreateDocumentArray @ foundry.js:9920
await in _preCreateDocumentArray (async)
_createDocuments @ foundry.js:9837
create @ backend.mjs:96
await in create (async)
createDocuments @ document.mjs:338
create @ document.mjs:439
processMessage @ foundry.js:57610
_onChatKeyDown @ foundry.js:57859
jumpToMenuHandler @ autocomplete-whisper.js:147
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
13:49:37.999 onloadwff.js:71 Assertion failed: Input argument is not an HTMLInputElement
getFormProfile @ onloadwff.js:71
setFieldValue @ onloadwff.js:71
formKeydownListener @ onloadwff.js:71

Should be fixed with the 2.3.4 release.