diff --git a/.travis.yml b/.travis.yml index 604b899..8f370b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ cache: before_install: - npm install - - jspm install \ No newline at end of file + - jspm install diff --git a/jspm.config.js b/jspm.config.js index 7b4bfd0..90aa924 100644 --- a/jspm.config.js +++ b/jspm.config.js @@ -21,6 +21,9 @@ SystemJS.config({ 'map': { './webvr': { '~browser': '@empty' + }, + './utils/platform-properties': { + '~browser': '@empty' } } }, @@ -358,7 +361,7 @@ SystemJS.config({ 'aurelia-polyfills': 'npm:aurelia-polyfills@1.0.0-beta.1.0.0', 'cesium': 'github:aelatgt/cesium@referenceFrames', 'googlevr/webvr-polyfill': 'github:googlevr/webvr-polyfill@0.9.3', - 'mobile-detect': 'npm:mobile-detect@1.3.2' + 'webvr-feature-detector': 'github:pindiespace/webvr-feature-detector@master' }, packages: {} }); diff --git a/package.json b/package.json index d8da497..8dd1346 100644 --- a/package.json +++ b/package.json @@ -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/webvr-polyfill@0.9.27", "json": "github:systemjs/plugin-json@^0.2.3", "mobile-detect": "npm:mobile-detect@^1.3.2", @@ -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", diff --git a/src/utils.ts b/src/utils.ts index 46ae3b4..3108939 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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'; diff --git a/src/utils/platform-properties.ts b/src/utils/platform-properties.ts new file mode 100644 index 0000000..b7705f5 --- /dev/null +++ b/src/utils/platform-properties.ts @@ -0,0 +1,4 @@ +import 'webvr-feature-detector/src/webvr-feature-detector'; + +let PlatformProperties = WebVRFeatureDetector +export {PlatformProperties}