This commit is contained in:
Namhyeon Go 2020-07-07 14:25:29 +09:00
parent e07aa0a2a1
commit 6b9513dd84
4 changed files with 16 additions and 9 deletions

View File

@ -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" />

View File

@ -45,11 +45,14 @@ var FILE = require('lib/file');
};
}(),
ajax = function(url, callback) {
var req = xmlHttp();
if (!req) {
return;
}
if (!FILE.fileExists(url)) {
var pos = url.indexOf('://');
var scheme = (pos < 0) ? "" : url.substring(0, pos);
if (scheme == 'http' || scheme == 'https') {
var req = xmlHttp();
if (!req) {
return;
}
req.open("GET", url, true);
req.onreadystatechange = function() {
if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) {

View File

@ -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;
}
};

View File

@ -231,6 +231,10 @@ return {
return window.jQuery.toast;
});
};
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");