mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-10 05:36:04 +00:00
Update app.js
This commit is contained in:
parent
6da822fc80
commit
14f3d56441
18
app.js
18
app.js
|
@ -327,8 +327,15 @@ require.__msie9__ = function(FN, params, callback) {
|
||||||
htmlfile.write('<meta http-equiv="X-UA-Compatible" content="IE=9">');
|
htmlfile.write('<meta http-equiv="X-UA-Compatible" content="IE=9">');
|
||||||
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + T + '\n//]]>--></script>');
|
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + T + '\n//]]>--></script>');
|
||||||
if (typeof callback === "function") {
|
if (typeof callback === "function") {
|
||||||
|
var loadScript = function(FN) {
|
||||||
|
if (FN.indexOf('://') > -1) {
|
||||||
|
htmlfile.write('<script type="text/javascript" src="' + FN + '"></script>');
|
||||||
|
} else {
|
||||||
|
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + require.__load__(FN) + '\n//]]>--></script>');
|
||||||
|
}
|
||||||
|
};
|
||||||
//console.log(htmlfile.parentWindow.navigator.userAgent);
|
//console.log(htmlfile.parentWindow.navigator.userAgent);
|
||||||
exports = callback(params, htmlfile.parentWindow, htmlfile.parentWindow.document);
|
exports = callback(params, htmlfile.parentWindow, htmlfile.parentWindow.document, loadScript);
|
||||||
}
|
}
|
||||||
htmlfile.close();
|
htmlfile.close();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -362,8 +369,15 @@ require.__modernie__ = function(FN, params, callback) {
|
||||||
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + T + '\n//]]>--></script>');
|
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + T + '\n//]]>--></script>');
|
||||||
|
|
||||||
if (typeof callback === "function") {
|
if (typeof callback === "function") {
|
||||||
|
var loadScript = function(FN) {
|
||||||
|
if (FN.indexOf('://') > -1) {
|
||||||
|
htmlfile.write('<script type="text/javascript" src="' + FN + '"></script>');
|
||||||
|
} else {
|
||||||
|
htmlfile.write('<script type="text/javascript">//<!--<![CDATA[\n' + require.__load__(FN) + '\n//]]>--></script>');
|
||||||
|
}
|
||||||
|
};
|
||||||
//console.log(htmlfile.parentWindow.navigator.userAgent);
|
//console.log(htmlfile.parentWindow.navigator.userAgent);
|
||||||
exports = callback(params, htmlfile.parentWindow, htmlfile.parentWindow.document);
|
exports = callback(params, htmlfile.parentWindow, htmlfile.parentWindow.document, loadScript);
|
||||||
}
|
}
|
||||||
htmlfile.close();
|
htmlfile.close();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user