summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/pepper/3rdparty/pepper.js/mouse_lock.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/pepper/3rdparty/pepper.js/mouse_lock.js')
-rw-r--r--src/plugins/platforms/pepper/3rdparty/pepper.js/mouse_lock.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/pepper/3rdparty/pepper.js/mouse_lock.js b/src/plugins/platforms/pepper/3rdparty/pepper.js/mouse_lock.js
index fc25df1cbf..09442b8bef 100644
--- a/src/plugins/platforms/pepper/3rdparty/pepper.js/mouse_lock.js
+++ b/src/plugins/platforms/pepper/3rdparty/pepper.js/mouse_lock.js
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+var ENVIRONMENT_IS_PTHREAD; // is set to true in pthread-main.js if we are in a worker
+if(!ENVIRONMENT_IS_PTHREAD) {
+
(function() {
var MouseLock_LockMouse = function(instance, callback) {
@@ -102,3 +105,5 @@
});
})();
+
+}