Skip to content

Commit

Permalink
Fix CSS reloading on HCP in a non-hacky way
Browse files Browse the repository at this point in the history
org.apache.cordova.file fixed this bug in 1.3
  • Loading branch information
Slava committed Aug 15, 2014
1 parent 9f55598 commit eec07f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/autoupdate/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Package.describe({
});

Cordova.depends({
'org.apache.cordova.file': '1.2.0',
'org.apache.cordova.file': '1.3.0',
'org.apache.cordova.file-transfer': '0.4.4'
});

Expand Down
13 changes: 5 additions & 8 deletions tools/client/meteor_cordova_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@
};

var loadStyle = function (url) {
var oReq = new XMLHttpRequest();
oReq.onload = function () {
var styleTag = document.createElement('style');
styleTag.innerHTML = this.responseText;
document.getElementsByTagName('head')[0].appendChild(styleTag);
};
oReq.open("get", url, true);
oReq.send();
var styleTag = document.createElement('link');
styleTag.rel = "stylesheet";
styleTag.type = "text/css";
styleTag.href = url;
document.getElementsByTagName('head')[0].appendChild(styleTag);
};

var loadAssetsFromManifest = function (manifest, urlPrefix) {
Expand Down

0 comments on commit eec07f7

Please sign in to comment.