Skip to content

Commit

Permalink
Update vr.js
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed May 10, 2013
1 parent 55666ce commit 52b0a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vr.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ vr.Runtime = function(document) {
this.dataSourceMode_ = vr.DataSourceMode.PLUGIN;

// If we have the USB driver, use that. Otherwise, default to plugin.
if (global.__vr_driver__) {
if (global['__vr_driver__']) {
this.dataSourceMode_ = vr.DataSourceMode.DRIVER;
}
var dataSource = null;
Expand All @@ -528,7 +528,7 @@ vr.Runtime = function(document) {
dataSource = new vr.PluginDataSource(this.document_);
break;
case vr.DataSourceMode.DRIVER:
dataSource = new vr.DriverDataSource(global.__vr_driver__);
dataSource = new vr.DriverDataSource(global['__vr_driver__']);
break;
}

Expand Down

0 comments on commit 52b0a6f

Please sign in to comment.