mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +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;
|
||||
|
||||
// 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 T = null;
|
||||
try {
|
||||
|
@ -298,15 +298,19 @@ require.__msie9__ = function(FN, params, callback) {
|
|||
if (FN.substr(FN.length - 3) !== '.js') FN += ".js";
|
||||
|
||||
var exports = null;
|
||||
var T = require.__load__("app/assets/js/corejs-20210810.wsh.js") + "\n" + require.__load__(FN);
|
||||
var htmlfile = new ActiveXObject("htmlfile");
|
||||
htmlfile.write('<meta http-equiv="X-UA-Compatible" content="IE=9">');
|
||||
htmlfile.write('<script>\n' + T + '\n</script>');
|
||||
if (typeof callback === "function") {
|
||||
//console.log(htmlfile.parentWindow.navigator.userAgent);
|
||||
exports = callback(params, htmlfile.parentWindow, htmlfile.parentWindow.document);
|
||||
try {
|
||||
var T = require.__load__("app/assets/js/corejs-20210810.wsh.js") + "\n" + require.__load__(FN);
|
||||
var htmlfile = CreateObject("htmlfile");
|
||||
htmlfile.write('<meta http-equiv="X-UA-Compatible" content="IE=9">');
|
||||
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + T + '\n//]]>--></script>');
|
||||
if (typeof callback === "function") {
|
||||
//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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user