mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix CSS reloading on HCP in a non-hacky way
org.apache.cordova.file fixed this bug in 1.3
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user