KayelGee / token-attacher

MIT License
11 stars 18 forks source link

Uncaught exception when closing attaching UI after token has been deleted #47

Closed watermelonwolverine closed 3 years ago

watermelonwolverine commented 3 years ago

Steps to reproduce:

  1. Select token
  2. Open attaching UI
  3. Delete token
  4. Close attaching UI

Result:

Uncaught (in promise) TypeError: Cannot read property 'document' of undefined at updateFunc (token-attacher.js:829) at Function._updateAttachedOffsets (token-attacher.js:845) at Function.closeTokenAttacherUI (token-attacher.js:1147) at HTMLDivElement. (token-attacher.js:997) at HTMLDivElement.dispatch (jquery.min.js:2) at HTMLDivElement.v.handle (jquery.min.js:2) updateFunc @ token-attacher.js:829 _updateAttachedOffsets @ token-attacher.js:845 closeTokenAttacherUI @ token-attacher.js:1147 (anonymous) @ token-attacher.js:997 dispatch @ jquery.min.js:2 v.handle @ jquery.min.js:2 async function (async)
_updateAttachedOffsets @ token-attacher.js:845 closeTokenAttacherUI @ token-attacher.js:1147 (anonymous) @ token-attacher.js:997 dispatch @ jquery.min.js:2 v.handle @ jquery.min.js:2

KayelGee commented 3 years ago

oh wow how did that slip for such a long time

KayelGee commented 3 years ago

Fixed in next update.