Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposed platform properties in browser environment #71

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ cache:

before_install:
- npm install
- jspm install
- jspm install
5 changes: 4 additions & 1 deletion jspm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ SystemJS.config({
'map': {
'./webvr': {
'~browser': '@empty'
},
'./utils/platform-properties': {
'~browser': '@empty'
}
}
},
Expand Down Expand Up @@ -358,7 +361,7 @@ SystemJS.config({
'aurelia-polyfills': 'npm:[email protected]',
'cesium': 'github:aelatgt/cesium@referenceFrames',
'googlevr/webvr-polyfill': 'github:googlevr/[email protected]',
'mobile-detect': 'npm:[email protected]'
'webvr-feature-detector': 'github:pindiespace/webvr-feature-detector@master'
},
packages: {}
});
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"cesium": "github:aelatgt/cesium@referenceFrames",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@^1.2.0",
"aurelia-polyfills": "npm:aurelia-polyfills@^1.0.0-beta.1.0.0",
"webvr-feature-detector": "github:pindiespace/webvr-feature-detector@^1.0.0",
"googlevr/webvr-polyfill": "github:googlevr/[email protected]",
"json": "github:systemjs/plugin-json@^0.2.3",
"mobile-detect": "npm:mobile-detect@^1.3.2",
Expand Down Expand Up @@ -247,6 +248,7 @@
"derequire": "^2.0.3",
"jspm": "0.17.0-beta.32",
"node-static": "^0.7.7",
"systemjs": "^0.20.9",
"tsconfig-glob": "^0.2.1",
"typedoc": "^0.5.7",
"typescript": "^2.2.1",
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export * from './utils/event';
export * from './utils/message-channel';
export {default as getEventSynthesizier} from './utils/ui-event-synthesizer';
export {default as createEventForwarder} from './utils/ui-event-forwarder';
export * from './utils/platform-properties';



Expand Down
4 changes: 4 additions & 0 deletions src/utils/platform-properties.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import 'webvr-feature-detector/src/webvr-feature-detector';

let PlatformProperties = WebVRFeatureDetector
export {PlatformProperties}