fixed url in install.html

This commit is contained in:
Tankred Hase 2013-03-29 10:14:43 +01:00
parent c873008b29
commit 727921841a
1 changed files with 1 additions and 2 deletions

View File

@ -3,8 +3,7 @@
<p>Packaged app installation page</p>
<script>
// This URL must be a full url.
var baseUrl = window.location;
var manifestUrl = 'http://tanx.github.com/html5-mail/manifest.webapp';
var manifestUrl = window.location.href.replace('install.html', 'manifest.webapp');
var req = navigator.mozApps.install(manifestUrl);
req.onsuccess = function() {
alert('Success: ' + this.result.origin);