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
3d3c3876c9
commit
83665d0696
28
app.js
28
app.js
|
@ -310,7 +310,10 @@ require.__msie9__ = function(FN, params, callback) {
|
|||
|
||||
var exports = null;
|
||||
try {
|
||||
var T = require.__load__("app/assets/js/core-js-3.26.1.minified.js") + "\n\n" + require.__load__(FN);
|
||||
var T = require.__load__("app/assets/js/core-js-3.26.1.minified.js")
|
||||
+ "\n\n" + require.__load__("app/assets/js/html5shiv-printshiv-3.7.3.min.js")
|
||||
+ "\n\n" + require.__load__("app/assets/js/modernizr-2.8.3.min.js")
|
||||
+ "\n\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>');
|
||||
|
@ -325,6 +328,29 @@ require.__msie9__ = function(FN, params, callback) {
|
|||
|
||||
return exports;
|
||||
};
|
||||
require.__modernie__ = function(FN, params, callback) {
|
||||
if (FN.substr(FN.length - 3) !== '.js') FN += ".js";
|
||||
|
||||
var exports = null;
|
||||
try {
|
||||
var T = require.__load__("app/assets/js/core-js-3.26.1.minified.js")
|
||||
+ "\n\n" + require.__load__("app/assets/js/modernizr-2.8.3.min.js")
|
||||
+ "\n\n" + require.__load__("app/assets/js/babel-standalone-7.20.6.min.js");
|
||||
+ "\n\n" + require.__load__(FN);
|
||||
var htmlfile = CreateObject("htmlfile");
|
||||
htmlfile.write('<meta http-equiv="X-UA-Compatible" content="IE=edge">');
|
||||
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);
|
||||
}
|
||||
|
||||
return exports;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
// Load script, and call app.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user