Fix Node.js test runner with CommonJS exports

This commit is contained in:
2026-02-01 14:31:27 +02:00
parent db3e46de18
commit 55ede2679e
7 changed files with 45 additions and 29 deletions

View File

@@ -620,3 +620,8 @@ function getModifierString(modifiers) {
return key;
}
// Export for Node.js (CommonJS)
if (typeof module !== 'undefined' && module.exports) {
module.exports = { decodeDragonCode };
}