diff --git a/lib/api.js b/lib/api.js
index <HASH>..<HASH> 100644
--- a/lib/api.js
+++ b/lib/api.js
@@ -52,9 +52,9 @@ Api.prototype.load = function () {
 }
 
 Api.prototype.isNodeIntegrationEnabled = function () {
-  return this.app.client.execute(function () {
-    return typeof process !== 'undefined'
-  }).then(getResponseValue)
+  return this.app.client.execute(function (requireName) {
+    return typeof window[requireName] === 'function'
+  }, this.requireName).then(getResponseValue)
 }
 
 Api.prototype.getVersion = function () {
Check require for if node integration is enabled