1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 10:52:17 -05:00
mail/install.html

17 lines
489 B
HTML
Raw Normal View History

<html>
<body>
<p>Packaged app installation page</p>
<script>
// This URL must be a full url.
2013-03-29 05:08:14 -04:00
var baseUrl = window.location;
2013-03-28 16:52:48 -04:00
var manifestUrl = 'http://tanx.github.com/html5-mail/manifest.webapp';
var req = navigator.mozApps.install(manifestUrl);
req.onsuccess = function() {
alert('Success: ' + this.result.origin);
};
req.onerror = function() {
alert('Error: ' + this.error.name);
};
</script>
</body>
</html>