mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update app.js
This commit is contained in:
parent
4db58b0a3a
commit
0764d2793d
4
app.js
4
app.js
|
@ -226,7 +226,7 @@ function require(pathname) {
|
||||||
if (cache[FN]) return cache[FN];
|
if (cache[FN]) return cache[FN];
|
||||||
|
|
||||||
var T = '';
|
var T = '';
|
||||||
if (require._scriptProviders.length > 0) {
|
if (FN.indexOf('://') > -1 && require._scriptProviders.length > 0) {
|
||||||
// get a script from a custom provider (e.g., remote server)
|
// get a script from a custom provider (e.g., remote server)
|
||||||
var status = -1, i = 0;
|
var status = -1, i = 0;
|
||||||
while (status < 0 && i < require._scriptProviders.length) {
|
while (status < 0 && i < require._scriptProviders.length) {
|
||||||
|
@ -234,7 +234,7 @@ function require(pathname) {
|
||||||
var result = require._scriptProviders[i](FN);
|
var result = require._scriptProviders[i](FN);
|
||||||
status = result.status;
|
status = result.status;
|
||||||
if (status > -1) {
|
if (status > -1) {
|
||||||
T = result.data;
|
T = result.responseText;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user