Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie0 committed Nov 2, 2017
1 parent 501a371 commit 1313363
Show file tree
Hide file tree
Showing 21 changed files with 6 additions and 8,100 deletions.
Binary file not shown.
Binary file modified platforms/android/.gradle/2.14.1/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file modified platforms/android/.gradle/2.14.1/taskArtifacts/fileSnapshots.bin
Binary file not shown.
Binary file not shown.
Binary file modified platforms/android/.gradle/2.14.1/taskArtifacts/taskArtifacts.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion platforms/android/assets/www/app.bundle.js

Large diffs are not rendered by default.

237 changes: 0 additions & 237 deletions platforms/android/assets/www/app.js

This file was deleted.

2,136 changes: 0 additions & 2,136 deletions platforms/android/assets/www/polyfills.js

This file was deleted.

325 changes: 0 additions & 325 deletions platforms/android/assets/www/vendor.js

This file was deleted.

Binary file modified platforms/browser/build/package.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion platforms/browser/www/app.bundle.js

Large diffs are not rendered by default.

237 changes: 0 additions & 237 deletions platforms/browser/www/app.js

This file was deleted.

2,136 changes: 0 additions & 2,136 deletions platforms/browser/www/polyfills.js

This file was deleted.

325 changes: 0 additions & 325 deletions platforms/browser/www/vendor.js

This file was deleted.

2 changes: 1 addition & 1 deletion platforms/ios/www/app.bundle.js

Large diffs are not rendered by default.

237 changes: 0 additions & 237 deletions platforms/ios/www/app.js

This file was deleted.

2,136 changes: 0 additions & 2,136 deletions platforms/ios/www/polyfills.js

This file was deleted.

325 changes: 0 additions & 325 deletions platforms/ios/www/vendor.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/app/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {OnsNavigator} from 'angular2-onsenui';
import {Radio} from './radio';

declare var RemoteCommand:any;
declare var cordova:any;

@Component({
selector: 'player',
Expand Down Expand Up @@ -37,7 +36,8 @@ export class Player {

var userAgent = window.navigator.userAgent;
// Are we on a mobile browser?
if (cordova.platformId == "browser" && ((/(iPad|iPhone|iPod)/gi).test(userAgent)
console.log('Checking mobile target...', window['cordova'])
if ((!window['cordova'] || window['cordova'].platformId == "browser") && ((/(iPad|iPhone|iPod)/gi).test(userAgent)
|| (/CriOS/).test(userAgent)
|| (/FxiOS/).test(userAgent)
|| (/OPiOS/).test(userAgent)
Expand Down
2 changes: 1 addition & 1 deletion www/app.bundle.js

Large diffs are not rendered by default.

Empty file added www/cordova.js
Empty file.

0 comments on commit 1313363

Please sign in to comment.