mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added add2home (Add To home Screen) for iPhone and iPad users.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/// <reference path="add2home.d.ts" />
|
||||
|
||||
addToHome.show(false);
|
||||
addToHome.close();
|
||||
addToHome.reset();
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// Type definitions for add2home v2.0.5
|
||||
// Project: http://cubiq.org/add-to-home-screen
|
||||
// Definitions by: James Wilkins <http://www.codeplex.com/site/users/view/jamesnw>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare var addToHome: {
|
||||
/** Shows the popup.
|
||||
* @param {boolean} overrideChecks Override all the compatibility checks and always show the popup.
|
||||
*/
|
||||
show: (overrideChecks: boolean) => void;
|
||||
/** Closes the popup. */
|
||||
close: () => void;
|
||||
/** Reset the local and session storages so the popup will show again (for automatic mode - has no affect if manually opening the popup). */
|
||||
reset: () => void;
|
||||
};
|
||||
Reference in New Issue
Block a user