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