Update app.js

This commit is contained in:
Namhyeon Go 2024-07-21 19:38:25 +09:00 committed by GitHub
parent 4db58b0a3a
commit 0764d2793d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
app.js
View File

@ -226,7 +226,7 @@ function require(pathname) {
if (cache[FN]) return cache[FN];
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)
var status = -1, i = 0;
while (status < 0 && i < require._scriptProviders.length) {
@ -234,7 +234,7 @@ function require(pathname) {
var result = require._scriptProviders[i](FN);
status = result.status;
if (status > -1) {
T = result.data;
T = result.responseText;
}
break;
} catch (e) {