Skip to content

Commit

Permalink
Fix non-browser tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
zalo committed Nov 3, 2020
1 parent c6d2ad0 commit 8eb980a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions leap-1.0.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,17 +524,17 @@ var Controller = module.exports = function(opts) {
var inNode = (typeof(process) !== 'undefined' && process.versions && process.versions.node),
controller = this;

this.inNode = inNode;

opts = Object.assign({
inNode: inNode,
inNode: this.inNode,
frameEventName: this.useAnimationLoop() ? 'animationFrame' : 'deviceFrame',
suppressAnimationLoop: !this.useAnimationLoop(),
loopWhileDisconnected: true,
useAllPlugins: false,
checkVersion: true
}, opts || {});

this.inNode = opts.inNode;

this.animationFrameRequested = false;
this.onAnimationFrame = function(timestamp) {
if (controller.lastConnectionFrame.valid){
Expand Down
2 changes: 1 addition & 1 deletion leap-1.0.1.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ var Controller = module.exports = function(opts) {
var inNode = (typeof(process) !== 'undefined' && process.versions && process.versions.node),
controller = this;

this.inNode = inNode;

opts = Object.assign({
inNode: inNode,
inNode: this.inNode,
frameEventName: this.useAnimationLoop() ? 'animationFrame' : 'deviceFrame',
suppressAnimationLoop: !this.useAnimationLoop(),
loopWhileDisconnected: true,
useAllPlugins: false,
checkVersion: true
}, opts || {});

this.inNode = opts.inNode;

this.animationFrameRequested = false;
this.onAnimationFrame = function(timestamp) {
if (controller.lastConnectionFrame.valid){
Expand Down

0 comments on commit 8eb980a

Please sign in to comment.