diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webchannel/qwebchannel.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webchannel/qwebchannel.js b/src/webchannel/qwebchannel.js index 8bfe106..dd6c4b3 100644 --- a/src/webchannel/qwebchannel.js +++ b/src/webchannel/qwebchannel.js @@ -415,3 +415,10 @@ function QObject(name, data, webChannel) object[name] = data.enums[name]; } } + +//required for use with nodejs +if (typeof module === 'object') { + module.exports = { + QWebChannel: QWebChannel + }; +} |