mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 09:49:07 +00:00
Fix contructor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/// <reference path="mobile-detect.d.ts" />
|
||||
|
||||
var md: MobileDetect;
|
||||
var md: MobileDetect = new MobileDetect(window.navigator.userAgent);
|
||||
|
||||
var mobie: string = md.mobile()
|
||||
var phone: string = md.phone()
|
||||
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
declare class MobileDetect {
|
||||
|
||||
contructor(userAgent: string, maxPhoneWidth?: number): MobileDetect;
|
||||
constructor(userAgent: string, maxPhoneWidth?: number);
|
||||
|
||||
is(key: string): boolean;
|
||||
match(pattern: string|RegExp): boolean
|
||||
|
||||
Reference in New Issue
Block a user