We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b29a095 + baaab3c commit ce9521cCopy full SHA for ce9521c
1 file changed
src/script.js
@@ -48,7 +48,11 @@
48
setTimeout(function () {
49
each(paths, function loading(path, force) {
50
if (path === null) return callback()
51
- path = !force && path.indexOf('.js') === -1 && !/^https?:\/\//.test(path) && scriptpath ? scriptpath + path + '.js' : path
+
52
+ if (!force && !/^https?:\/\//.test(path) && scriptpath) {
53
+ path = (path.indexOf('.js') === -1) ? scriptpath + path + '.js' : scriptpath + path;
54
+ }
55
56
if (scripts[path]) {
57
if (id) ids[id] = 1
58
return (scripts[path] == 2) ? callback() : setTimeout(function () { loading(path, true) }, 0)
0 commit comments