mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
updated
This commit is contained in:
parent
e07aa0a2a1
commit
6b9513dd84
2
app.hta
2
app.hta
|
@ -47,7 +47,7 @@
|
|||
Selection="No"
|
||||
/>
|
||||
<title>NextVPN</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=8" />
|
||||
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
|
||||
<meta name="description" content="Welsonjs: Build a windows desktop apps fastly without installing packages" />
|
||||
<meta name="keywords" content="webapp" />
|
||||
|
|
|
@ -45,11 +45,14 @@ var FILE = require('lib/file');
|
|||
};
|
||||
}(),
|
||||
ajax = function(url, callback) {
|
||||
var pos = url.indexOf('://');
|
||||
var scheme = (pos < 0) ? "" : url.substring(0, pos);
|
||||
|
||||
if (scheme == 'http' || scheme == 'https') {
|
||||
var req = xmlHttp();
|
||||
if (!req) {
|
||||
return;
|
||||
}
|
||||
if (!FILE.fileExists(url)) {
|
||||
req.open("GET", url, true);
|
||||
req.onreadystatechange = function() {
|
||||
if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) {
|
||||
|
|
|
@ -391,13 +391,13 @@ var FILE = require('lib/file');
|
|||
function loadStyleSheet(url) {
|
||||
var pos = url.indexOf('://');
|
||||
var scheme = (pos < 0) ? "" : url.substring(0, pos);
|
||||
if (scheme != 'file' && !FILE.fileExists(url)) {
|
||||
|
||||
if (scheme == 'http' || scheme == 'https') {
|
||||
xhr.open("GET", url, false);
|
||||
xhr.send();
|
||||
return (xhr.status == 200) ? xhr.responseText : EMPTY_STRING;
|
||||
} else {
|
||||
var filepath = url.substring(pos + 4);
|
||||
var responseText = FILE.readFile(filepath, "utf-8");
|
||||
var responseText = FILE.readFile(url, "utf-8");
|
||||
return responseText;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -232,6 +232,10 @@ return {
|
|||
});
|
||||
};
|
||||
|
||||
if(self.getIEVersion() == 8) {
|
||||
self.addScript("app/assets/css/jquery/webreflection-ie8-0.8.1.min.js");
|
||||
}
|
||||
|
||||
// "load javascripts dynamically";
|
||||
self.addScript("app/assets/js/es5-shim-4.5.14.min.js");
|
||||
self.addScript("app/assets/js/es5-sham-4.5.14.min.js");
|
||||
|
|
Loading…
Reference in New Issue
Block a user