Fix Node.js test runner with CommonJS exports
This commit is contained in:
@@ -620,3 +620,8 @@ function getModifierString(modifiers) {
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
// Export for Node.js (CommonJS)
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = { decodeDragonCode };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user