Skip to content

Commit e55c0c3

Browse files
committed
declare navigator to get rid of errors
1 parent 1dbfd70 commit e55c0c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugins/media-capture.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {Plugin, Cordova, CordovaProperty} from './plugin';
22
import {Observable} from 'rxjs/Rx';
3+
declare var navigator: any;
34
/**
45
* @name Media Capture
56
* @description
@@ -8,7 +9,7 @@ import {Observable} from 'rxjs/Rx';
89
* import {MediaCapture} from 'ionic-native';
910
*
1011
* ...
11-
*
12+
*
1213
* let options: CaptureImageOptions = { limit: 3 };
1314
* MediaCapture.captureImage(options)
1415
* .then(

0 commit comments

Comments
 (0)