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
64e556f37a
commit
eb05661e2b
11
app.js
11
app.js
|
@ -216,9 +216,12 @@ if (typeof CreateObject === "undefined") {
|
|||
/**
|
||||
* @FN {string} The name of the file.
|
||||
*/
|
||||
function __evalFile(FN) {
|
||||
if (FN.substring(FN.length - 3) !== '.js') FN += ".js";
|
||||
return eval(require._load(FN));
|
||||
function __evalFile__(FN) {
|
||||
try {
|
||||
return eval(require._load(FN));
|
||||
} catch (e) {
|
||||
console.error(e.message);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -647,7 +650,7 @@ if (!Date.prototype.toISOString) {
|
|||
|
||||
// JSON 2
|
||||
if (typeof JSON === "undefined") {
|
||||
__evalFile("app/assets/js/json2");
|
||||
__evalFile__("app/assets/js/json2.js");
|
||||
}
|
||||
|
||||
// core-js (aka. babel-polyfill)
|
||||
|
|
Loading…
Reference in New Issue
Block a user