mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(platform): using desktop instead of window
This commit is contained in:
@ -9,7 +9,7 @@ The Platform service can be used to get information about your current device. Y
|
|||||||
|
|
||||||
| Method | Description |
|
| Method | Description |
|
||||||
|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `is` | Returns true/false based on platform. Available options are android, cordova, core, ios, ipad, iphone, mobile, mobileweb, phablet, tablet, windows, electron. |
|
| `is` | Returns true/false based on platform. Available options are android, cordova, core, ios, ipad, iphone, mobile, mobileweb, phablet, tablet, desktop, electron. |
|
||||||
| `platforms` | Returns an array of platforms that the current device matches. |
|
| `platforms` | Returns an array of platforms that the current device matches. |
|
||||||
| `versions` | Returns an object that contains the major, minor, and patcher version of the current device. |
|
| `versions` | Returns an object that contains the major, minor, and patcher version of the current device. |
|
||||||
| `ready` | Returns a promise that resolves when the native bridge is ready in Cordova, or when the DOM is fully loaded in the browser. |
|
| `ready` | Returns a promise that resolves when the native bridge is ready in Cordova, or when the DOM is fully loaded in the browser. |
|
||||||
|
Reference in New Issue
Block a user