Skip to content

Commit 963bb24

Browse files
committed
Add node-webkit to UMD header
1 parent 000a8e4 commit 963bb24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tcp-socket",
3-
"version": "0.5.7",
3+
"version": "0.5.8",
44
"main": "src/tcp-socket",
55
"description": "This shim brings the W3C Raw Socket API to node.js and Chromium. Its purpose is to enable apps to use the same api in Firefox OS, Chrome OS, and on the server.",
66
"repository": {

src/tcp-socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// amd
2626
define(['tcp-socket-tls'], factory.bind(null, navigator));
2727
} else if (typeof exports === 'object' && typeof navigator !== 'undefined') {
28-
if (process.versions.electron) {
28+
if (process.versions.electron || process.versions.nw || process.versions['node-webkit']) {
2929
// common.js for electron
3030
module.exports = factory(navigator, null, require('net'), require('tls'));
3131
} else {

0 commit comments

Comments
 (0)