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