mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 04:12:18 -05:00
16 lines
464 B
HTML
16 lines
464 B
HTML
<html>
|
|
<body>
|
|
<p>Packaged app installation page</p>
|
|
<script>
|
|
// This URL must be a full url.
|
|
var manifestUrl = window.location.href.replace('install.html', '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> |