Skip to content

Commit 0487367

Browse files
committed
Update hooks.js
Fix #416
1 parent e12651f commit 0487367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class PolyglotHooks {
6060
* @returns {Boolean}
6161
*/
6262
static preCreateChatMessage(message, data, options, userId) {
63-
const isCheckboxEnabled = !game.settings.get("polyglot", "checkbox");
63+
const isCheckboxEnabled = !game.polyglot.tomSelect.isDisabled;
6464
const isMessageLink = game.polyglot._isMessageLink(data.content);
6565
const isMessageInlineRoll = /\[\[(.*?)\]\]/g.test(data.content);
6666
// Message preprended by /desc from either Cautious GM Tools or Narrator Tools modules

0 commit comments

Comments
 (0)