mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Update platform.js
I added a bit of detail to ready function to remind folks that - in the context of a web browser - even though ready has fired it is *NOT* going to allow for device specific features. It may be too obvious, but I really think a reminder here will help.
This commit is contained in:
@@ -51,6 +51,8 @@
|
||||
* When the app is within a WebView (Cordova), it'll fire
|
||||
* the callback once the device is ready. If the app is within
|
||||
* a web browser, it'll fire the callback after `window.load`.
|
||||
* Please remember that Cordova features (Camera, FileSystem, etc) still
|
||||
* will not work in a web browser.
|
||||
* @param {function} callback The function to call.
|
||||
*/
|
||||
ready: function(cb) {
|
||||
|
||||
Reference in New Issue
Block a user