mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-08 12:46:05 +00:00
Update app.js
This commit is contained in:
parent
2b23b2c8b1
commit
f847a29b09
22
app.js
22
app.js
|
@ -278,7 +278,7 @@ require.__load__ = function(FN) {
|
||||||
var __filename__ = require.__getCurrentScriptDirectory__() + "\\" + FN;
|
var __filename__ = require.__getCurrentScriptDirectory__() + "\\" + FN;
|
||||||
|
|
||||||
// load script file
|
// load script file
|
||||||
// use ADODB.Stream instead of Scripting.FileSystemObject, because of UTF-8 (unicode)
|
// use ADODB.Stream instead of Scripting.FileSystemObject, because of supporting UTF-8 (Unicode)
|
||||||
var objStream = CreateObject("ADODB.Stream");
|
var objStream = CreateObject("ADODB.Stream");
|
||||||
var T = null;
|
var T = null;
|
||||||
try {
|
try {
|
||||||
|
@ -298,15 +298,19 @@ require.__msie9__ = function(FN, params, callback) {
|
||||||
if (FN.substr(FN.length - 3) !== '.js') FN += ".js";
|
if (FN.substr(FN.length - 3) !== '.js') FN += ".js";
|
||||||
|
|
||||||
var exports = null;
|
var exports = null;
|
||||||
var T = require.__load__("app/assets/js/corejs-20210810.wsh.js") + "\n" + require.__load__(FN);
|
try {
|
||||||
var htmlfile = new ActiveXObject("htmlfile");
|
var T = require.__load__("app/assets/js/corejs-20210810.wsh.js") + "\n" + require.__load__(FN);
|
||||||
htmlfile.write('<meta http-equiv="X-UA-Compatible" content="IE=9">');
|
var htmlfile = CreateObject("htmlfile");
|
||||||
htmlfile.write('<script>\n' + T + '\n</script>');
|
htmlfile.write('<meta http-equiv="X-UA-Compatible" content="IE=9">');
|
||||||
if (typeof callback === "function") {
|
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + T + '\n//]]>--></script>');
|
||||||
//console.log(htmlfile.parentWindow.navigator.userAgent);
|
if (typeof callback === "function") {
|
||||||
exports = callback(params, htmlfile.parentWindow, htmlfile.parentWindow.document);
|
//console.log(htmlfile.parentWindow.navigator.userAgent);
|
||||||
|
exports = callback(params, htmlfile.parentWindow, htmlfile.parentWindow.document);
|
||||||
|
}
|
||||||
|
htmlfile.close();
|
||||||
|
} catch (e) {
|
||||||
|
console.error("LOAD ERROR!", e.number + ",", e.description + ",", "FN=" + FN);
|
||||||
}
|
}
|
||||||
htmlfile.close();
|
|
||||||
|
|
||||||
return exports;
|
return exports;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user