Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
update AppInstall to latest so it actually works as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
sole committed Jul 23, 2014
1 parent 1bef52f commit 0988a62
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions js/lib/AppInstall.js
@@ -1,19 +1,28 @@
(function() {

// Mortar AppInstall version 0.0.2
var _window = {
'location': {
// Mortar AppInstall version 0.0.3
var _window;
var isBrowser = this.hasOwnProperty('document');

if(isBrowser) {
_window = this;
} else {
_window = {
'location': {
'host': 'example.com',
'protocol': 'http:',
'pathname': '/example'
},
'navigator': {}
};
},
'navigator': {}
};
}


function setupMockups(win) {
_window = win;
}


function guessManifestPath() {

var loc = _window.location;
Expand Down Expand Up @@ -94,3 +103,4 @@
}

}).call(this);

0 comments on commit 0988a62

Please sign in to comment.